Class protos.google.cloud.compute.v1.ServiceAttachment (4.8.0)

Represents a ServiceAttachment.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.compute.v1.IServiceAttachment);

Constructs a new ServiceAttachment.

Parameter
Name Description
properties IServiceAttachment

Properties to set

Properties

_connectionPreference

public _connectionPreference?: "connectionPreference";

ServiceAttachment _connectionPreference.

_creationTimestamp

public _creationTimestamp?: "creationTimestamp";

ServiceAttachment _creationTimestamp.

_description

public _description?: "description";

ServiceAttachment _description.

_enableProxyProtocol

public _enableProxyProtocol?: "enableProxyProtocol";

ServiceAttachment _enableProxyProtocol.

_fingerprint

public _fingerprint?: "fingerprint";

ServiceAttachment _fingerprint.

_id

public _id?: "id";

ServiceAttachment _id.

_kind

public _kind?: "kind";

ServiceAttachment _kind.

_name

public _name?: "name";

ServiceAttachment _name.

_producerForwardingRule

public _producerForwardingRule?: "producerForwardingRule";

ServiceAttachment _producerForwardingRule.

_propagatedConnectionLimit

public _propagatedConnectionLimit?: "propagatedConnectionLimit";

ServiceAttachment _propagatedConnectionLimit.

_pscServiceAttachmentId

public _pscServiceAttachmentId?: "pscServiceAttachmentId";

ServiceAttachment _pscServiceAttachmentId.

_reconcileConnections

public _reconcileConnections?: "reconcileConnections";

ServiceAttachment _reconcileConnections.

_region

public _region?: "region";

ServiceAttachment _region.

public _selfLink?: "selfLink";

ServiceAttachment _selfLink.

_targetService

public _targetService?: "targetService";

ServiceAttachment _targetService.

connectedEndpoints

public connectedEndpoints: google.cloud.compute.v1.IServiceAttachmentConnectedEndpoint[];

ServiceAttachment connectedEndpoints.

connectionPreference

public connectionPreference?: (string|null);

ServiceAttachment connectionPreference.

consumerAcceptLists

public consumerAcceptLists: google.cloud.compute.v1.IServiceAttachmentConsumerProjectLimit[];

ServiceAttachment consumerAcceptLists.

consumerRejectLists

public consumerRejectLists: string[];

ServiceAttachment consumerRejectLists.

creationTimestamp

public creationTimestamp?: (string|null);

ServiceAttachment creationTimestamp.

description

public description?: (string|null);

ServiceAttachment description.

domainNames

public domainNames: string[];

ServiceAttachment domainNames.

enableProxyProtocol

public enableProxyProtocol?: (boolean|null);

ServiceAttachment enableProxyProtocol.

fingerprint

public fingerprint?: (string|null);

ServiceAttachment fingerprint.

id

public id?: (number|Long|string|null);

ServiceAttachment id.

kind

public kind?: (string|null);

ServiceAttachment kind.

name

public name?: (string|null);

ServiceAttachment name.

natSubnets

public natSubnets: string[];

ServiceAttachment natSubnets.

producerForwardingRule

public producerForwardingRule?: (string|null);

ServiceAttachment producerForwardingRule.

propagatedConnectionLimit

public propagatedConnectionLimit?: (number|null);

ServiceAttachment propagatedConnectionLimit.

pscServiceAttachmentId

public pscServiceAttachmentId?: (google.cloud.compute.v1.IUint128|null);

ServiceAttachment pscServiceAttachmentId.

reconcileConnections

public reconcileConnections?: (boolean|null);

ServiceAttachment reconcileConnections.

region

public region?: (string|null);

ServiceAttachment region.

public selfLink?: (string|null);

ServiceAttachment selfLink.

targetService

public targetService?: (string|null);

ServiceAttachment targetService.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.IServiceAttachment): google.cloud.compute.v1.ServiceAttachment;

Creates a new ServiceAttachment instance using the specified properties.

Parameter
Name Description
properties IServiceAttachment

Properties to set

Returns
Type Description
ServiceAttachment

ServiceAttachment instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.ServiceAttachment;

Decodes a ServiceAttachment message from the specified reader or buffer.

Parameters
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
Type Description
ServiceAttachment

ServiceAttachment

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.ServiceAttachment;

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
ServiceAttachment

ServiceAttachment

encode(message, writer)

public static encode(message: google.cloud.compute.v1.IServiceAttachment, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ServiceAttachment message. Does not implicitly messages.

Parameters
Name Description
message IServiceAttachment

ServiceAttachment message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.compute.v1.IServiceAttachment, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ServiceAttachment message, length delimited. Does not implicitly messages.

Parameters
Name Description
message IServiceAttachment

ServiceAttachment message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ServiceAttachment;

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

Parameter
Name Description
object { [k: string]: any }

Plain object

Returns
Type Description
ServiceAttachment

ServiceAttachment

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for ServiceAttachment

Parameter
Name Description
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
Type Description
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this ServiceAttachment to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.compute.v1.ServiceAttachment, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
Name Description
message ServiceAttachment

ServiceAttachment

options $protobuf.IConversionOptions

Conversion options

Returns
Type Description
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a ServiceAttachment message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not