Represents a ServiceAttachment.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.IServiceAttachment);Constructs a new ServiceAttachment.
| 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.
_pscServiceAttachmentId
public _pscServiceAttachmentId?: "pscServiceAttachmentId";ServiceAttachment _pscServiceAttachmentId.
_region
public _region?: "region";ServiceAttachment _region.
_selfLink
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.
region
public region?: (string|null);ServiceAttachment region.
selfLink
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.
| Name | Description |
| properties |
IServiceAttachment
Properties to set |
| Type | Description |
| google.cloud.compute.v1.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.
| Name | Description |
| reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
| length |
number
Message length if known beforehand |
| Type | Description |
| google.cloud.compute.v1.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.
| Name | Description |
| reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
| Type | Description |
| google.cloud.compute.v1.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.
| Name | Description |
| message |
IServiceAttachment
ServiceAttachment message or plain object to encode |
| writer |
$protobuf.Writer
Writer to encode to |
| 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.
| Name | Description |
| message |
IServiceAttachment
ServiceAttachment message or plain object to encode |
| writer |
$protobuf.Writer
Writer to encode to |
| 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.
| Name | Description |
| object |
{ [k: string]: any }
Plain object |
| Type | Description |
| google.cloud.compute.v1.ServiceAttachment | ServiceAttachment |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;Gets the default type url for ServiceAttachment
| Name | Description |
| typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
| Type | Description |
| string | The default type url |
toJSON()
public toJSON(): { [k: string]: any };Converts this ServiceAttachment to JSON.
| 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.
| Name | Description |
| message |
google.cloud.compute.v1.ServiceAttachment
ServiceAttachment |
| options |
$protobuf.IConversionOptions
Conversion options |
| Type | Description |
| { [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);Verifies a ServiceAttachment message.
| Name | Description |
| message |
{ [k: string]: any }
Plain object to verify |
| Type | Description |
| (string|null) |
|