Class: Google::Apis::ServiceconsumermanagementV1::TenancyUnit
- Inherits:
-
Object
- Object
- Google::Apis::ServiceconsumermanagementV1::TenancyUnit
- 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
-
#consumer ⇒ String
For example 'projects/123456'.
-
#create_time ⇒ String
Corresponds to the JSON property
createTime. -
#name ⇒ String
Globally unique identifier of this tenancy unit "services/
service/collection id/resource id/tenancyUnits/unit" Corresponds to the JSON propertyname. -
#service ⇒ String
For example 'serviceconsumermanagement.googleapis.com'.
-
#tenant_resources ⇒ Array<Google::Apis::ServiceconsumermanagementV1::TenantResource>
Resources constituting the tenancy unit.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TenancyUnit
constructor
A new instance of TenancyUnit.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TenancyUnit
Returns a new instance of TenancyUnit
3428 3429 3430 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3428 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumer ⇒ String
For example 'projects/123456'.
Corresponds to the JSON property consumer
3403 3404 3405 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3403 def consumer @consumer end |
#create_time ⇒ String
Corresponds to the JSON property createTime
3408 3409 3410 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3408 def create_time @create_time end |
#name ⇒ String
Globally unique identifier of this tenancy unit
"services/service/collection id/resource id/tenancyUnits/unit"
Corresponds to the JSON property name
3414 3415 3416 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3414 def name @name end |
#service ⇒ String
For example 'serviceconsumermanagement.googleapis.com'.
Corresponds to the JSON property service
3420 3421 3422 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3420 def service @service end |
#tenant_resources ⇒ Array<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
3426 3427 3428 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3426 def tenant_resources @tenant_resources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3433 3434 3435 3436 3437 3438 3439 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3433 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 |