Batch V1 API - Class Google::Cloud::Batch::V1::ServiceAccount (v0.12.0)

Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::ServiceAccount.

Carries information about a Google Cloud service account.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#email

def email() -> ::String
Returns
  • (::String) — Email address of the service account. If not specified, the default Compute Engine service account for the project will be used. If instance template is being used, the service account has to be specified in the instance template and it has to match the email field here.

#email=

def email=(value) -> ::String
Parameter
  • value (::String) — Email address of the service account. If not specified, the default Compute Engine service account for the project will be used. If instance template is being used, the service account has to be specified in the instance template and it has to match the email field here.
Returns
  • (::String) — Email address of the service account. If not specified, the default Compute Engine service account for the project will be used. If instance template is being used, the service account has to be specified in the instance template and it has to match the email field here.

#scopes

def scopes() -> ::Array<::String>
Returns
  • (::Array<::String>) — List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.

#scopes=

def scopes=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.
Returns
  • (::Array<::String>) — List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default.