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
Output only.
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Globally unique identifier of this tenancy unit "services/
service
/collection id
/resource id
/tenancyUnits/unit
" Corresponds to the JSON propertyname
. -
#service ⇒ String
Output only.
-
#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.
Constructor Details
#initialize(**args) ⇒ TenancyUnit
Returns a new instance of TenancyUnit.
3053 3054 3055 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3053 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumer ⇒ String
Output only. @OutputOnly Cloud resource name of the consumer of this service.
For example 'projects/123456'.
Corresponds to the JSON property consumer
3028 3029 3030 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3028 def consumer @consumer end |
#create_time ⇒ String
Output only. @OutputOnly The time this tenancy unit was created.
Corresponds to the JSON property createTime
3033 3034 3035 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3033 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
3039 3040 3041 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3039 def name @name end |
#service ⇒ String
Output only. Google Cloud API name of the managed service owning this tenancy
unit. For example 'serviceconsumermanagement.googleapis.com'.
Corresponds to the JSON property service
3045 3046 3047 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3045 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
3051 3052 3053 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3051 def tenant_resources @tenant_resources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3058 3059 3060 3061 3062 3063 3064 |
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3058 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 |