Class: CreateApiKeyRequest
Represents a CreateApiKeyRequest.
Properties
asyncOperationId
asyncOperationId:
string
The id to use for this async operation - optional.
spec?
optionalspec?:$Properties|null
The spec for the api key to create. Create api key only supports service-account owner type for now.
Methods
toJSON()
toJSON():
object
Converts this CreateApiKeyRequest to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):CreateApiKeyRequest&$Properties
Creates a new CreateApiKeyRequest instance using the specified properties.
Parameters
properties?
Properties to set
Returns
CreateApiKeyRequest & $Properties
CreateApiKeyRequest instance
Call Signature
staticcreate(properties?):CreateApiKeyRequest
Creates a new CreateApiKeyRequest instance using the specified properties.
Parameters
properties?
Properties to set
Returns
CreateApiKeyRequest
CreateApiKeyRequest instance
decode()
staticdecode(reader,length?):CreateApiKeyRequest&$Properties
Decodes a CreateApiKeyRequest message from the specified reader or buffer.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
length?
number
Message length if known beforehand
Returns
CreateApiKeyRequest & $Properties
CreateApiKeyRequest
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):CreateApiKeyRequest&$Properties
Decodes a CreateApiKeyRequest message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
CreateApiKeyRequest & $Properties
CreateApiKeyRequest
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
staticencode(message,writer?):Writer
Encodes the specified CreateApiKeyRequest message. Does not implicitly temporal.api.cloud.cloudservice.v1.CreateApiKeyRequest.verify|verify messages.
Parameters
message
CreateApiKeyRequest message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified CreateApiKeyRequest message, length delimited. Does not implicitly temporal.api.cloud.cloudservice.v1.CreateApiKeyRequest.verify|verify messages.
Parameters
message
CreateApiKeyRequest message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):CreateApiKeyRequest
Creates a CreateApiKeyRequest message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
CreateApiKeyRequest
CreateApiKeyRequest
toObject()
statictoObject(message,options?):object
Creates a plain object from a CreateApiKeyRequest message. Also converts values to other types if specified.
Parameters
message
CreateApiKeyRequest
CreateApiKeyRequest
options?
IConversionOptions
Conversion options
Returns
object
Plain object