Class: Google::Apis::CloudnumberregistryV1alpha::IpamAdminScope

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

An IpamAdminScope defines the administrative boundary for IP address discovery and management. It configures which platforms and organizational scopes are enabled for IP tracking.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IpamAdminScope

Returns a new instance of IpamAdminScope.



523
524
525
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 523

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


488
489
490
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 488

def create_time
  @create_time
end

#enabled_addon_platformsArray<String>

Required. Add-on platforms that are enabled for this IpamAdminScope. Cloud Number Registry only discovers the IP addresses from the enabled platforms. Corresponds to the JSON property enabledAddonPlatforms

Returns:

  • (Array<String>)


494
495
496
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 494

def enabled_addon_platforms
  @enabled_addon_platforms
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


499
500
501
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 499

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


504
505
506
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 504

def name
  @name
end

#scopesArray<String>

Required. Administrative scopes enabled for IP address discovery and management. For example, "organizations/1234567890". Minimum of 1 scope is required. In preview, only one organization scope is allowed. Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


511
512
513
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 511

def scopes
  @scopes
end

#stateString

Output only. State of resource discovery pipeline. Corresponds to the JSON property state

Returns:

  • (String)


516
517
518
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 516

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


521
522
523
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 521

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



528
529
530
531
532
533
534
535
536
# File 'lib/google/apis/cloudnumberregistry_v1alpha/classes.rb', line 528

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @enabled_addon_platforms = args[:enabled_addon_platforms] if args.key?(:enabled_addon_platforms)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @scopes = args[:scopes] if args.key?(:scopes)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end