Class: Google::Apis::ServicedirectoryV1beta1::Namespace
- Inherits:
-
Object
- Object
- Google::Apis::ServicedirectoryV1beta1::Namespace
- 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
-
#create_time ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Immutable.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Namespace
constructor
A new instance of Namespace.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Namespace
Returns a new instance of Namespace.
507 508 509 |
# File 'lib/google/apis/servicedirectory_v1beta1/classes.rb', line 507 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The timestamp when the namespace was created.
Corresponds to the JSON property createTime
482 483 484 |
# File 'lib/google/apis/servicedirectory_v1beta1/classes.rb', line 482 def create_time @create_time end |
#labels ⇒ Hash<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
489 490 491 |
# File 'lib/google/apis/servicedirectory_v1beta1/classes.rb', line 489 def labels @labels end |
#name ⇒ String
Immutable. The resource name for the namespace in the format projects/*/
locations/*/namespaces/*
.
Corresponds to the JSON property name
495 496 497 |
# File 'lib/google/apis/servicedirectory_v1beta1/classes.rb', line 495 def name @name end |
#uid ⇒ String
Output only. A globally unique identifier (in UUID4 format) for this namespace.
Corresponds to the JSON property uid
500 501 502 |
# File 'lib/google/apis/servicedirectory_v1beta1/classes.rb', line 500 def uid @uid end |
#update_time ⇒ String
Output only. The timestamp when the namespace was last updated.
Corresponds to the JSON property updateTime
505 506 507 |
# File 'lib/google/apis/servicedirectory_v1beta1/classes.rb', line 505 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
512 513 514 515 516 517 518 |
# File 'lib/google/apis/servicedirectory_v1beta1/classes.rb', line 512 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) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |