Class: Google::Apis::ServiceconsumermanagementV1::CreateTenancyUnitRequest
- Inherits:
-
Object
- Object
- Google::Apis::ServiceconsumermanagementV1::CreateTenancyUnitRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/serviceconsumermanagement_v1/classes.rb,
generated/google/apis/serviceconsumermanagement_v1/representations.rb,
generated/google/apis/serviceconsumermanagement_v1/representations.rb
Overview
Request to create a tenancy unit for a consumer of a service.
Instance Attribute Summary collapse
-
#tenancy_unit_id ⇒ String
Optional producer provided identifier of the tenancy unit Must be no longer than 40 characters and preferably URI friendly If it is not provided, UID for the tenancy unit will be auto generated It must be unique across a service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateTenancyUnitRequest
constructor
A new instance of CreateTenancyUnitRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreateTenancyUnitRequest
Returns a new instance of CreateTenancyUnitRequest
719 720 721 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 719 def initialize(**args) update!(**args) end |
Instance Attribute Details
#tenancy_unit_id ⇒ String
Optional producer provided identifier of the tenancy unit
Must be no longer than 40 characters and preferably URI friendly
If it is not provided, UID for the tenancy unit will be auto generated
It must be unique across a service.
If the tenancy unit already exists for the service and consumer pair,
CreateTenancyUnit will return existing tenancy unit if provided identifier
is identical or empty, otherwise the call will fail.
Corresponds to the JSON property tenancyUnitId
717 718 719 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 717 def tenancy_unit_id @tenancy_unit_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
724 725 726 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 724 def update!(**args) @tenancy_unit_id = args[:tenancy_unit_id] if args.key?(:tenancy_unit_id) end |