Class: Google::Apis::ReplicapoolV1beta1::ServiceAccount

Inherits:
Object
  • Object
show all
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

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



751
752
753
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 751

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

Instance Attribute Details

#emailString

The service account email address, for example: 123845678986@project. gserviceaccount.com Corresponds to the JSON property email

Returns:

  • (String)


743
744
745
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 743

def email
  @email
end

#scopesArray<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

Returns:

  • (Array<String>)


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