Class: Google::Apis::ServicedirectoryV1beta1::Namespace

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

Overview

A container for services. Namespaces allow administrators to group services together and define permissions for a collection of services.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Namespace

Returns a new instance of Namespace.



464
465
466
# File 'lib/google/apis/servicedirectory_v1beta1/classes.rb', line 464

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

Instance Attribute Details

#create_timeString

Output only. The timestamp when the namespace was created. Corresponds to the JSON property createTime

Returns:

  • (String)


444
445
446
# File 'lib/google/apis/servicedirectory_v1beta1/classes.rb', line 444

def create_time
  @create_time
end

#labelsHash<String,String>

Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


451
452
453
# File 'lib/google/apis/servicedirectory_v1beta1/classes.rb', line 451

def labels
  @labels
end

#nameString

Immutable. The resource name for the namespace in the format projects/*/ locations/*/namespaces/*. Corresponds to the JSON property name

Returns:

  • (String)


457
458
459
# File 'lib/google/apis/servicedirectory_v1beta1/classes.rb', line 457

def name
  @name
end

#update_timeString

Output only. The timestamp when the namespace was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


462
463
464
# File 'lib/google/apis/servicedirectory_v1beta1/classes.rb', line 462

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



469
470
471
472
473
474
# File 'lib/google/apis/servicedirectory_v1beta1/classes.rb', line 469

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @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