Class: Google::Apis::ServiceconsumermanagementV1::CreateTenancyUnitRequest

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

Overview

Request to create a tenancy unit for a service consumer of a managed service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateTenancyUnitRequest

Returns a new instance of CreateTenancyUnitRequest.



716
717
718
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 716

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

Instance Attribute Details

#tenancy_unit_idString

Optional. Optional service producer-provided identifier of the tenancy unit. Must be no longer than 40 characters and preferably URI friendly. If it isn't provided, a UID for the tenancy unit is automatically generated. The identifier must be unique across a managed service. If the tenancy unit already exists for the managed service and service consumer pair, calling CreateTenancyUnit returns the existing tenancy unit if the provided identifier is identical or empty, otherwise the call fails. Corresponds to the JSON property tenancyUnitId

Returns:

  • (String)


714
715
716
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 714

def tenancy_unit_id
  @tenancy_unit_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



721
722
723
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 721

def update!(**args)
  @tenancy_unit_id = args[:tenancy_unit_id] if args.key?(:tenancy_unit_id)
end