Class: Google::Apis::ServiceconsumermanagementV1::TenancyUnit

Inherits:
Object
  • Object
show all
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

Representation of a tenancy unit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TenancyUnit

Returns a new instance of TenancyUnit



3615
3616
3617
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3615

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

Instance Attribute Details

#consumerString

For example 'projects/123456'. Corresponds to the JSON property consumer

Returns:

  • (String)


3590
3591
3592
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3590

def consumer
  @consumer
end

#create_timeString

Corresponds to the JSON property createTime

Returns:

  • (String)


3595
3596
3597
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3595

def create_time
  @create_time
end

#nameString

Globally unique identifier of this tenancy unit "services/service/collection id/resource id/tenancyUnits/unit" Corresponds to the JSON property name

Returns:

  • (String)


3601
3602
3603
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3601

def name
  @name
end

#serviceString

For example 'serviceconsumermanagement.googleapis.com'. Corresponds to the JSON property service

Returns:

  • (String)


3607
3608
3609
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3607

def service
  @service
end

#tenant_resourcesArray<Google::Apis::ServiceconsumermanagementV1::TenantResource>

Resources constituting the tenancy unit. There can be at most 512 tenant resources in a tenancy unit. Corresponds to the JSON property tenantResources



3613
3614
3615
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3613

def tenant_resources
  @tenant_resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3620
3621
3622
3623
3624
3625
3626
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3620

def update!(**args)
  @consumer = args[:consumer] if args.key?(:consumer)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @service = args[:service] if args.key?(:service)
  @tenant_resources = args[:tenant_resources] if args.key?(:tenant_resources)
end