Class: Google::Apis::ServiceconsumermanagementV1::ServiceAccountConfig

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

Describes service account configuration for the tenant project.

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

Returns a new instance of ServiceAccountConfig



3329
3330
3331
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3329

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

Instance Attribute Details

#account_idString

ID of the IAM service account to be created in tenant project. The email format of the service account will be "@.iam.gserviceaccount.com". This account id has to be unique within tenant project and producers have to guarantee it. Corresponds to the JSON property accountId

Returns:

  • (String)


3322
3323
3324
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3322

def 
  @account_id
end

#tenant_project_rolesArray<String>

Roles for the service account above on tenant project. Corresponds to the JSON property tenantProjectRoles

Returns:

  • (Array<String>)


3327
3328
3329
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3327

def tenant_project_roles
  @tenant_project_roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3334
3335
3336
3337
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3334

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