Class: Google::Apis::ServiceconsumermanagementV1::TenantResource
- Inherits:
-
Object
- Object
- Google::Apis::ServiceconsumermanagementV1::TenantResource
- 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
Resource constituting the TenancyUnit.
Instance Attribute Summary collapse
-
#migrated_tenant_project ⇒ String
Output only.
-
#resource ⇒ String
Output only.
-
#status ⇒ String
Status of tenant resource.
-
#tag ⇒ String
Unique per single tenancy unit.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TenantResource
constructor
A new instance of TenantResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TenantResource
Returns a new instance of TenantResource.
4205 4206 4207 |
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 4205 def initialize(**args) update!(**args) end |
Instance Attribute Details
#migrated_tenant_project ⇒ String
Output only. The newly created regional resource name of the tenant project
that has been migrated from a global service. This field is only set for
migrated tenant projects. Format: services//collection_id/RESOURCE_ID/
locations/LOCATION/tenantProjects/TENANT_ID`.
Corresponds to the JSON propertymigratedTenantProject`
4187 4188 4189 |
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 4187 def migrated_tenant_project @migrated_tenant_project end |
#resource ⇒ String
Output only. @OutputOnly Identifier of the tenant resource. For cloud projects,
it is in the form 'projects/number'. For example 'projects/123456'.
Corresponds to the JSON property resource
4193 4194 4195 |
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 4193 def resource @resource end |
#status ⇒ String
Status of tenant resource.
Corresponds to the JSON property status
4198 4199 4200 |
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 4198 def status @status end |
#tag ⇒ String
Unique per single tenancy unit.
Corresponds to the JSON property tag
4203 4204 4205 |
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 4203 def tag @tag end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4210 4211 4212 4213 4214 4215 |
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 4210 def update!(**args) @migrated_tenant_project = args[:migrated_tenant_project] if args.key?(:migrated_tenant_project) @resource = args[:resource] if args.key?(:resource) @status = args[:status] if args.key?(:status) @tag = args[:tag] if args.key?(:tag) end |