Skip to main content

Class: ConnectivityRule

connectivityrule.v1.ConnectivityRule

Represents a ConnectivityRule.

Properties​

asyncOperationId​

• asyncOperationId: string

The id of the async operation that is creating/updating/deleting the connectivity rule, if any.


createdTime​

• Optional createdTime: null | $Properties

The date and time when the connectivity rule was created.


id​

• id: string

The id of the private connectivity rule.


resourceVersion​

• resourceVersion: string

The current version of the connectivity rule specification. The next update operation will have to include this version.


spec​

• Optional spec: null | $Properties

The connectivity rule specification.


state​

• state: ResourceState

ConnectivityRule state.

Methods​

toJSON​

▸ toJSON(): Object

Converts this ConnectivityRule to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): ConnectivityRule & $Shape

Creates a new ConnectivityRule instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

ConnectivityRule & $Shape

ConnectivityRule instance

▸ create(properties?): ConnectivityRule

Parameters​

NameType
properties?$Properties

Returns​

ConnectivityRule


decode​

▸ decode(reader, length?): ConnectivityRule & $Shape

Decodes a ConnectivityRule message from the specified reader or buffer.

Parameters​

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

Returns​

ConnectivityRule & $Shape

ConnectivityRule

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): ConnectivityRule & $Shape

Decodes a ConnectivityRule message from the specified reader or buffer, length delimited.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

ConnectivityRule & $Shape

ConnectivityRule

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

Parameters​

NameTypeDescription
message$PropertiesConnectivityRule message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

NameTypeDescription
message$PropertiesConnectivityRule message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): ConnectivityRule

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

ConnectivityRule

ConnectivityRule


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageConnectivityRuleConnectivityRule
options?IConversionOptionsConversion options

Returns​

Object

Plain object