Class: Google::Apis::ManagerV1beta2::ServiceAccount
- Inherits:
-
Object
- Object
- Google::Apis::ManagerV1beta2::ServiceAccount
- 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
-
#email ⇒ String
Service account email address.
-
#scopes ⇒ Array<String>
List of OAuth2 scopes to obtain for the service account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceAccount
constructor
A new instance of ServiceAccount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#email ⇒ String
Service account email address.
Corresponds to the JSON property email
1179 1180 1181 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1179 def email @email end |
#scopes ⇒ Array<String>
List of OAuth2 scopes to obtain for the service account.
Corresponds to the JSON property scopes
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 |