Batch v1 API - Class ServiceAccount (2.5.0)

public sealed class ServiceAccount : IMessage<ServiceAccount>, IEquatable<ServiceAccount>, IDeepCloneable<ServiceAccount>, IBufferMessage, IMessage

Reference documentation and code samples for the Batch v1 API class ServiceAccount.

Carries information about a Google Cloud service account.

Inheritance

object > ServiceAccount

Namespace

Google.Cloud.Batch.V1

Assembly

Google.Cloud.Batch.V1.dll

Constructors

ServiceAccount()

public ServiceAccount()

ServiceAccount(ServiceAccount)

public ServiceAccount(ServiceAccount other)
Parameter
NameDescription
otherServiceAccount

Properties

Email

public string Email { get; set; }

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.

Property Value
TypeDescription
string

Scopes

public RepeatedField<string> Scopes { get; }

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.

Property Value
TypeDescription
RepeatedFieldstring