Class: ServiceAccountSpec
identity.v1.ServiceAccountSpec
Represents a ServiceAccountSpec.
Implements
Constructors
constructor
• new ServiceAccountSpec(properties?
): ServiceAccountSpec
Constructs a new ServiceAccountSpec.
Parameters
Name | Type | Description |
---|---|---|
properties? | IServiceAccountSpec | Properties to set |
Returns
Properties
access
• Optional
access: null
| IAccess
Note: one of Access
or NamespaceScopedAccess
must be provided, but not both.
The access assigned to the service account.
If set, creates an account scoped service account.
The access is mutable.
Implementation of
description
• description: string
The description associated with the service account - optional. The description is mutable.
Implementation of
IServiceAccountSpec.description
name
• name: string
The name associated with the service account. The name is mutable, but must be unique across all your active service accounts.
Implementation of
namespaceScopedAccess
• Optional
namespaceScopedAccess: null
| INamespaceScopedAccess
The namespace scoped access assigned to the service account.
If set, creates a namespace scoped service account (limited to a single namespace).
The namespace scoped access is partially mutable.
Refer to NamespaceScopedAccess
for details.
Implementation of
IServiceAccountSpec.namespaceScopedAccess
Methods
toJSON
▸ toJSON(): Object
Converts this ServiceAccountSpec to JSON.
Returns
Object
JSON object
create
▸ create(properties?
): ServiceAccountSpec
Creates a new ServiceAccountSpec instance using the specified properties.
Parameters
Name | Type | Description |
---|---|---|
properties? | IServiceAccountSpec | Properties to set |
Returns
ServiceAccountSpec instance
decode
▸ decode(reader
, length?
): ServiceAccountSpec
Decodes a ServiceAccountSpec message from the specified reader or buffer.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
ServiceAccountSpec
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader
): ServiceAccountSpec
Decodes a ServiceAccountSpec message from the specified reader or buffer, length delimited.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
ServiceAccountSpec
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode
▸ encode(message
, writer?
): Writer
Encodes the specified ServiceAccountSpec message. Does not implicitly temporal.api.cloud.identity.v1.ServiceAccountSpec.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | IServiceAccountSpec | ServiceAccountSpec message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message
, writer?
): Writer
Encodes the specified ServiceAccountSpec message, length delimited. Does not implicitly temporal.api.cloud.identity.v1.ServiceAccountSpec.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | IServiceAccountSpec | ServiceAccountSpec message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object
): ServiceAccountSpec
Creates a ServiceAccountSpec message from a plain object. Also converts values to their respective internal types.
Parameters
Name | Type | Description |
---|---|---|
object | Object | Plain object |
Returns
ServiceAccountSpec
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?
): string
Gets the default type url for ServiceAccountSpec
Parameters
Name | Type | Description |
---|---|---|
typeUrlPrefix? | string | your custom typeUrlPrefix(default "type.googleapis.com") |
Returns
string
The default type url
toObject
▸ toObject(message
, options?
): Object
Creates a plain object from a ServiceAccountSpec message. Also converts values to other types if specified.
Parameters
Name | Type | Description |
---|---|---|
message | ServiceAccountSpec | ServiceAccountSpec |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object