Class: Google::Apis::ServiceconsumermanagementV1::V1ServiceAccount

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

A service account in the Identity and Access Management API.

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

Returns a new instance of V1ServiceAccount



4021
4022
4023
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 4021

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

Instance Attribute Details

#emailString

The email address of the service account. Corresponds to the JSON property email

Returns:

  • (String)


3994
3995
3996
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3994

def email
  @email
end

#iam_account_nameString

The IAM resource name of the service account in the following format: projects/PROJECT_ID/serviceAccounts/ACCOUNT. Corresponds to the JSON property iamAccountName

Returns:

  • (String)


4000
4001
4002
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 4000

def 
  @iam_account_name
end

#nameString

P4 SA resource name. An example name would be: services/serviceconsumermanagement.googleapis.com/projects/123/ serviceAccounts/default Corresponds to the JSON property name

Returns:

  • (String)


4008
4009
4010
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 4008

def name
  @name
end

#tagString

The P4 SA configuration tag. This must be defined in activation_grants. If not specified when creating the account, the tag is set to "default". Corresponds to the JSON property tag

Returns:

  • (String)


4014
4015
4016
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 4014

def tag
  @tag
end

#unique_idString

The unique and stable id of the service account. Corresponds to the JSON property uniqueId

Returns:

  • (String)


4019
4020
4021
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 4019

def unique_id
  @unique_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4026
4027
4028
4029
4030
4031
4032
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 4026

def update!(**args)
  @email = args[:email] if args.key?(:email)
  @iam_account_name = args[:iam_account_name] if args.key?(:iam_account_name)
  @name = args[:name] if args.key?(:name)
  @tag = args[:tag] if args.key?(:tag)
  @unique_id = args[:unique_id] if args.key?(:unique_id)
end