Class: Google::Apis::ManagerV1beta2::ServiceAccount

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/manager_v1beta2/classes.rb,
generated/google/apis/manager_v1beta2/representations.rb,
generated/google/apis/manager_v1beta2/representations.rb

Overview

A Compute Engine service account, identical to the Compute Engine 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) ⇒ ServiceAccount

Returns a new instance of ServiceAccount



1186
1187
1188
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1186

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

Instance Attribute Details

#emailString

Service account email address. Corresponds to the JSON property email

Returns:

  • (String)


1179
1180
1181
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1179

def email
  @email
end

#scopesArray<String>

List of OAuth2 scopes to obtain for the service account. Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


1184
1185
1186
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1184

def scopes
  @scopes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1191
1192
1193
1194
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1191

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