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 the service account configuration for the tenant project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceAccountConfig

Returns a new instance of ServiceAccountConfig.



2836
2837
2838
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 2836

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 is "@.iam.gserviceaccount.com". This account ID must be unique within tenant project and service producers have to guarantee it. The ID must be 6-30 characters long, and match the following regular expression: [a-z]([-a-z0-9]*[a-z0-9]). Corresponds to the JSON property accountId

Returns:

  • (String)


2829
2830
2831
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 2829

def 
  @account_id
end

#tenant_project_rolesArray<String>

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

Returns:

  • (Array<String>)


2834
2835
2836
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 2834

def tenant_project_roles
  @tenant_project_roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2841
2842
2843
2844
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 2841

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