Class: Google::Apis::ServicedirectoryV1beta1::Namespace
- Inherits:
-
Object
- Object
- Google::Apis::ServicedirectoryV1beta1::Namespace
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicedirectory_v1beta1/classes.rb,
generated/google/apis/servicedirectory_v1beta1/representations.rb,
generated/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
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Immutable.
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.
433 434 435 |
# File 'generated/google/apis/servicedirectory_v1beta1/classes.rb', line 433 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
425 426 427 |
# File 'generated/google/apis/servicedirectory_v1beta1/classes.rb', line 425 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
431 432 433 |
# File 'generated/google/apis/servicedirectory_v1beta1/classes.rb', line 431 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
438 439 440 441 |
# File 'generated/google/apis/servicedirectory_v1beta1/classes.rb', line 438 def update!(**args) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) end |