Class: UpdateNamespaceTagsRequest
cloudservice.v1.UpdateNamespaceTagsRequest
Represents an UpdateNamespaceTagsRequest.
Properties
asyncOperationId
• asyncOperationId: string
The id to use for this async operation - optional.
namespace
• namespace: string
The namespace to set tags for.
tagsToRemove
• tagsToRemove: string[]
A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored. At least one of tags_to_upsert or tags_to_remove must be specified.
tagsToUpsert
• tagsToUpsert: Object
A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated. At least one of tags_to_upsert or tags_to_remove must be specified.
Index signature
▪ [k: string]: string
Methods
toJSON
▸ toJSON(): Object
Converts this UpdateNamespaceTagsRequest to JSON.
Returns
Object
JSON object
create
▸ create(properties?): UpdateNamespaceTagsRequest & $Properties
Creates a new UpdateNamespaceTagsRequest instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | $Properties | Properties to set |
Returns
UpdateNamespaceTagsRequest & $Properties
UpdateNamespaceTagsRequest instance
▸ create(properties?): UpdateNamespaceTagsRequest
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
decode
▸ decode(reader, length?): UpdateNamespaceTagsRequest & $Properties
Decodes an UpdateNamespaceTagsRequest 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
UpdateNamespaceTagsRequest & $Properties
UpdateNamespaceTagsRequest
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): UpdateNamespaceTagsRequest & $Properties
Decodes an UpdateNamespaceTagsRequest message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
UpdateNamespaceTagsRequest & $Properties
UpdateNamespaceTagsRequest
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 UpdateNamespaceTagsRequest message. Does not implicitly temporal.api.cloud.cloudservice.v1.UpdateNamespaceTagsRequest.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | UpdateNamespaceTagsRequest message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message, writer?): Writer
Encodes the specified UpdateNamespaceTagsRequest message, length delimited. Does not implicitly temporal.api.cloud.cloudservice.v1.UpdateNamespaceTagsRequest.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | UpdateNamespaceTagsRequest message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object): UpdateNamespaceTagsRequest
Creates an UpdateNamespaceTagsRequest message from a plain object. Also converts values to their respective internal types.
Parameters
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
UpdateNamespaceTagsRequest
toObject
▸ toObject(message, options?): Object
Creates a plain object from an UpdateNamespaceTagsRequest message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | UpdateNamespaceTagsRequest | UpdateNamespaceTagsRequest |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object