Skip to main content

Class: UpdateServiceAccountRequest

cloudservice.v1.UpdateServiceAccountRequest

Represents an UpdateServiceAccountRequest.

Implements

Constructors

constructor

new UpdateServiceAccountRequest(properties?): UpdateServiceAccountRequest

Constructs a new UpdateServiceAccountRequest.

Parameters

NameTypeDescription
properties?IUpdateServiceAccountRequestProperties to set

Returns

UpdateServiceAccountRequest

Properties

asyncOperationId

asyncOperationId: string

The ID to use for this async operation - optional.

Implementation of

IUpdateServiceAccountRequest.asyncOperationId


resourceVersion

resourceVersion: string

The version of the service account for which this update is intended for. The latest version can be found in the GetServiceAccount response.

Implementation of

IUpdateServiceAccountRequest.resourceVersion


serviceAccountId

serviceAccountId: string

The ID of the service account to update.

Implementation of

IUpdateServiceAccountRequest.serviceAccountId


spec

Optional spec: null | IServiceAccountSpec

The new service account specification.

Implementation of

IUpdateServiceAccountRequest.spec

Methods

toJSON

toJSON(): Object

Converts this UpdateServiceAccountRequest to JSON.

Returns

Object

JSON object


create

create(properties?): UpdateServiceAccountRequest

Creates a new UpdateServiceAccountRequest instance using the specified properties.

Parameters

NameTypeDescription
properties?IUpdateServiceAccountRequestProperties to set

Returns

UpdateServiceAccountRequest

UpdateServiceAccountRequest instance


decode

decode(reader, length?): UpdateServiceAccountRequest

Decodes an UpdateServiceAccountRequest message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

UpdateServiceAccountRequest

UpdateServiceAccountRequest

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): UpdateServiceAccountRequest

Decodes an UpdateServiceAccountRequest message from the specified reader or buffer, length delimited.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

UpdateServiceAccountRequest

UpdateServiceAccountRequest

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 UpdateServiceAccountRequest message. Does not implicitly temporal.api.cloud.cloudservice.v1.UpdateServiceAccountRequest.verify|verify messages.

Parameters

NameTypeDescription
messageIUpdateServiceAccountRequestUpdateServiceAccountRequest message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified UpdateServiceAccountRequest message, length delimited. Does not implicitly temporal.api.cloud.cloudservice.v1.UpdateServiceAccountRequest.verify|verify messages.

Parameters

NameTypeDescription
messageIUpdateServiceAccountRequestUpdateServiceAccountRequest message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): UpdateServiceAccountRequest

Creates an UpdateServiceAccountRequest message from a plain object. Also converts values to their respective internal types.

Parameters

NameTypeDescription
objectObjectPlain object

Returns

UpdateServiceAccountRequest

UpdateServiceAccountRequest


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for UpdateServiceAccountRequest

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

Creates a plain object from an UpdateServiceAccountRequest message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageUpdateServiceAccountRequestUpdateServiceAccountRequest
options?IConversionOptionsConversion options

Returns

Object

Plain object