Class: Google::Apis::CloudnumberregistryV1alpha::RegistryBook

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudnumberregistry_v1alpha/classes.rb,
lib/google/apis/cloudnumberregistry_v1alpha/representations.rb,
lib/google/apis/cloudnumberregistry_v1alpha/representations.rb

Overview

A RegistryBook organizes and manages IP address space. It claims specific scopes (such as projects) and groups related Realms and Ranges.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RegistryBook

Returns a new instance of RegistryBook.



1166
1167
1168
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 1166

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aggregated_dataGoogle::Apis::CloudnumberregistryV1alpha::AggregatedData

Aggregated data for the RegistryBook. Corresponds to the JSON property aggregatedData



1131
1132
1133
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 1131

def aggregated_data
  @aggregated_data
end

#claimed_scopesArray<String>

Optional. List of scopes claimed by the RegistryBook. In Preview, Only project scope is supported. Each scope is in the format of projects/project. Each scope can only be claimed once. Corresponds to the JSON property claimedScopes

Returns:

  • (Array<String>)


1138
1139
1140
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 1138

def claimed_scopes
  @claimed_scopes
end

#create_timeString

Output only. The time at which the RegistryBook was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1143
1144
1145
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 1143

def create_time
  @create_time
end

#is_defaultBoolean Also known as: is_default?

Output only. Whether the RegistryBook is the default one. Corresponds to the JSON property isDefault

Returns:

  • (Boolean)


1148
1149
1150
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 1148

def is_default
  @is_default
end

#labelsHash<String,String>

Optional. User-defined labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1154
1155
1156
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 1154

def labels
  @labels
end

#nameString

Required. Identifier. The resource name of the RegistryBook. Corresponds to the JSON property name

Returns:

  • (String)


1159
1160
1161
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 1159

def name
  @name
end

#update_timeString

Output only. The time at which the RegistryBook was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1164
1165
1166
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 1164

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1171
1172
1173
1174
1175
1176
1177
1178
1179
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 1171

def update!(**args)
  @aggregated_data = args[:aggregated_data] if args.key?(:aggregated_data)
  @claimed_scopes = args[:claimed_scopes] if args.key?(:claimed_scopes)
  @create_time = args[:create_time] if args.key?(:create_time)
  @is_default = args[:is_default] if args.key?(:is_default)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
end