Class: Google::Apis::ReplicapoolV1beta1::ServiceAccount
- Inherits:
-
Object
- Object
- Google::Apis::ReplicapoolV1beta1::ServiceAccount
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/replicapool_v1beta1/classes.rb,
generated/google/apis/replicapool_v1beta1/representations.rb,
generated/google/apis/replicapool_v1beta1/representations.rb
Overview
A Compute Engine service account, identical to the Compute Engine resource.
Instance Attribute Summary collapse
-
#email ⇒ String
The service account email address, for example: 123845678986@project.
-
#scopes ⇒ Array<String>
The list of OAuth2 scopes to obtain for the service account, for example: https://www.googleapis.com/auth/devstorage.full_control Corresponds to the JSON property
scopes
.
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
751 752 753 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 751 def initialize(**args) update!(**args) end |
Instance Attribute Details
#email ⇒ String
The service account email address, for example: 123845678986@project.
gserviceaccount.com
Corresponds to the JSON property email
743 744 745 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 743 def email @email end |
#scopes ⇒ Array<String>
The list of OAuth2 scopes to obtain for the service account, for example:
https://www.googleapis.com/auth/devstorage.full_control
Corresponds to the JSON property scopes
749 750 751 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 749 def scopes @scopes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
756 757 758 759 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 756 def update!(**args) @email = args[:email] if args.key?(:email) @scopes = args[:scopes] if args.key?(:scopes) end |