Class: Google::Apis::ServiceconsumermanagementV1::AddTenantProjectRequest

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

Request to add a newly created and configured tenant project to a tenancy unit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddTenantProjectRequest

Returns a new instance of AddTenantProjectRequest.



42
43
44
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 42

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

Instance Attribute Details

#project_configGoogle::Apis::ServiceconsumermanagementV1::TenantProjectConfig

This structure defines a tenant project to be added to the specified tenancy unit and its initial configuration and properties. A project lien is created for the tenant project to prevent the tenant project from being deleted accidentally. The lien is deleted as part of tenant project removal. Corresponds to the JSON property projectConfig



35
36
37
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 35

def project_config
  @project_config
end

#tagString

Required. Tag of the added project. Must be less than 128 characters. Required. Corresponds to the JSON property tag

Returns:

  • (String)


40
41
42
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 40

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



47
48
49
50
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 47

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