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

Represents a ServiceAttachment.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

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

Constructs a new ServiceAttachment.

Parameter
NameDescription
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.

_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.

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
NameDescription
properties IServiceAttachment

Properties to set

Returns
TypeDescription
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
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
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
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
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
NameDescription
message IServiceAttachment

ServiceAttachment message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$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
NameDescription
message IServiceAttachment

ServiceAttachment message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$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
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
ServiceAttachment

ServiceAttachment

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for ServiceAttachment

Parameter
NameDescription
typeUrlPrefix string

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

Returns
TypeDescription
string

The default type url

toJSON()

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

Converts this ServiceAttachment to JSON.

Returns
TypeDescription
{ [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
NameDescription
message ServiceAttachment

ServiceAttachment

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a ServiceAttachment message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not