Class: Google::Apis::ServiceconsumermanagementV1::AttachTenantProjectRequest

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

Request to attach an existing project to the tenancy unit as a new tenant resource.

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) ⇒ AttachTenantProjectRequest

Returns a new instance of AttachTenantProjectRequest



188
189
190
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 188

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

Instance Attribute Details

#external_resourceString

When attaching an external project, this is in the format of projects/project_number’. Corresponds to the JSON propertyexternalResource`

Returns:

  • (String)


173
174
175
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 173

def external_resource
  @external_resource
end

#reserved_resourceString

When attaching a reserved project already in Tenancy Units, this is the tag of tenant resource under the tenancy unit for the service's producer project. The reserved tenant resource must be in active state. Corresponds to the JSON property reservedResource

Returns:

  • (String)


180
181
182
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 180

def reserved_resource
  @reserved_resource
end

#tagString

Tag of the tenant resource after attachment. Must be less than 128 characters. Required. Corresponds to the JSON property tag

Returns:

  • (String)


186
187
188
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 186

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



193
194
195
196
197
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 193

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