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.
Implements
IMessageServiceAccount, IEquatableServiceAccount, IDeepCloneableServiceAccount, IBufferMessage, IMessageNamespace
GoogleCloudGoogle.Cloud.BatchV1Assembly
Google.Cloud.Batch.V1.dll
Constructors
ServiceAccount()
public ServiceAccount()
ServiceAccount(ServiceAccount)
public ServiceAccount(ServiceAccount other)
Parameter | |
---|---|
Name | Description |
other | ServiceAccount |
Properties
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
RepeatedFieldstring |