Class: ApiKeySpec
Represents an ApiKeySpec.
Implements
Constructors
constructor
• new ApiKeySpec(properties?
): ApiKeySpec
Constructs a new ApiKeySpec.
Parameters
Name | Type | Description |
---|---|---|
properties? | IApiKeySpec | Properties to set |
Returns
Properties
description
• description: string
The description of the API key.
Implementation of
disabled
• disabled: boolean
True if the API key is disabled.
Implementation of
displayName
• displayName: string
The display name of the API key.
Implementation of
expiryTime
• Optional
expiryTime: null
| ITimestamp
The expiry time of the API key.
Implementation of
ownerId
• ownerId: string
The id of the owner to create the API key for. The owner id is immutable. Once set during creation, it cannot be changed. The owner id is the id of the user when the owner type is 'user'. The owner id is the id of the service account when the owner type is 'service-account'.
Implementation of
ownerType
• ownerType: string
The type of the owner to create the API key for. The owner type is immutable. Once set during creation, it cannot be changed. Possible values: user, service-account.
Implementation of
Methods
toJSON
▸ toJSON(): Object
Converts this ApiKeySpec to JSON.
Returns
Object
JSON object
create
▸ create(properties?
): ApiKeySpec
Creates a new ApiKeySpec instance using the specified properties.
Parameters
Name | Type | Description |
---|---|---|
properties? | IApiKeySpec | Properties to set |
Returns
ApiKeySpec instance
decode
▸ decode(reader
, length?
): ApiKeySpec
Decodes an ApiKeySpec 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
ApiKeySpec
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader
): ApiKeySpec
Decodes an ApiKeySpec message from the specified reader or buffer, length delimited.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
ApiKeySpec
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 ApiKeySpec message. Does not implicitly temporal.api.cloud.identity.v1.ApiKeySpec.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | IApiKeySpec | ApiKeySpec message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message
, writer?
): Writer
Encodes the specified ApiKeySpec message, length delimited. Does not implicitly temporal.api.cloud.identity.v1.ApiKeySpec.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | IApiKeySpec | ApiKeySpec message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object
): ApiKeySpec
Creates an ApiKeySpec message from a plain object. Also converts values to their respective internal types.
Parameters
Name | Type | Description |
---|---|---|
object | Object | Plain object |
Returns
ApiKeySpec
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?
): string
Gets the default type url for ApiKeySpec
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 an ApiKeySpec message. Also converts values to other types if specified.
Parameters
Name | Type | Description |
---|---|---|
message | ApiKeySpec | ApiKeySpec |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object