Represents a ForwardingRule.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1beta.IForwardingRule);Constructs a new ForwardingRule.
| Parameter | |
|---|---|
| Name | Description |
properties |
IForwardingRule
Properties to set |
Properties
allowGlobalAccess
public allowGlobalAccess?: (boolean|null);ForwardingRule allowGlobalAccess.
allowPscGlobalAccess
public allowPscGlobalAccess?: (boolean|null);ForwardingRule allowPscGlobalAccess.
allowPscPacketInjection
public allowPscPacketInjection?: (boolean|null);ForwardingRule allowPscPacketInjection.
allPorts
public allPorts?: (boolean|null);ForwardingRule allPorts.
backendService
public backendService?: (string|null);ForwardingRule backendService.
baseForwardingRule
public baseForwardingRule?: (string|null);ForwardingRule baseForwardingRule.
creationTimestamp
public creationTimestamp?: (string|null);ForwardingRule creationTimestamp.
description
public description?: (string|null);ForwardingRule description.
externalManagedBackendBucketMigrationState
public externalManagedBackendBucketMigrationState?: (string|null);ForwardingRule externalManagedBackendBucketMigrationState.
externalManagedBackendBucketMigrationTestingPercentage
public externalManagedBackendBucketMigrationTestingPercentage?: (number|null);ForwardingRule externalManagedBackendBucketMigrationTestingPercentage.
fingerprint
public fingerprint?: (string|null);ForwardingRule fingerprint.
id
public id?: (number|Long|string|null);ForwardingRule id.
IPAddress
public IPAddress?: (string|null);ForwardingRule IPAddress.
ipCollection
public ipCollection?: (string|null);ForwardingRule ipCollection.
IPProtocol
public IPProtocol?: (string|null);ForwardingRule IPProtocol.
ipVersion
public ipVersion?: (string|null);ForwardingRule ipVersion.
isMirroringCollector
public isMirroringCollector?: (boolean|null);ForwardingRule isMirroringCollector.
kind
public kind?: (string|null);ForwardingRule kind.
labelFingerprint
public labelFingerprint?: (string|null);ForwardingRule labelFingerprint.
labels
public labels: { [k: string]: string };ForwardingRule labels.
loadBalancingScheme
public loadBalancingScheme?: (string|null);ForwardingRule loadBalancingScheme.
metadataFilters
public metadataFilters: google.cloud.compute.v1beta.IMetadataFilter[];ForwardingRule metadataFilters.
name
public name?: (string|null);ForwardingRule name.
network
public network?: (string|null);ForwardingRule network.
networkTier
public networkTier?: (string|null);ForwardingRule networkTier.
noAutomateDnsZone
public noAutomateDnsZone?: (boolean|null);ForwardingRule noAutomateDnsZone.
portRange
public portRange?: (string|null);ForwardingRule portRange.
ports
public ports: string[];ForwardingRule ports.
pscConnectionId
public pscConnectionId?: (number|Long|string|null);ForwardingRule pscConnectionId.
pscConnectionStatus
public pscConnectionStatus?: (string|null);ForwardingRule pscConnectionStatus.
region
public region?: (string|null);ForwardingRule region.
selfLink
public selfLink?: (string|null);ForwardingRule selfLink.
selfLinkWithId
public selfLinkWithId?: (string|null);ForwardingRule selfLinkWithId.
serviceDirectoryRegistrations
public serviceDirectoryRegistrations: google.cloud.compute.v1beta.IForwardingRuleServiceDirectoryRegistration[];ForwardingRule serviceDirectoryRegistrations.
serviceLabel
public serviceLabel?: (string|null);ForwardingRule serviceLabel.
serviceName
public serviceName?: (string|null);ForwardingRule serviceName.
sourceIpRanges
public sourceIpRanges: string[];ForwardingRule sourceIpRanges.
subnetwork
public subnetwork?: (string|null);ForwardingRule subnetwork.
target
public target?: (string|null);ForwardingRule target.
Methods
create(properties)
public static create(properties?: google.cloud.compute.v1beta.IForwardingRule): google.cloud.compute.v1beta.ForwardingRule;Creates a new ForwardingRule instance using the specified properties.
| Parameter | |
|---|---|
| Name | Description |
properties |
IForwardingRule
Properties to set |
| Returns | |
|---|---|
| Type | Description |
ForwardingRule |
ForwardingRule instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.ForwardingRule;Decodes a ForwardingRule 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 |
ForwardingRule |
ForwardingRule |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.ForwardingRule;Decodes a ForwardingRule message from the specified reader or buffer, length delimited.
| Parameter | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
| Returns | |
|---|---|
| Type | Description |
ForwardingRule |
ForwardingRule |
encode(message, writer)
public static encode(message: google.cloud.compute.v1beta.IForwardingRule, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified ForwardingRule message. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
IForwardingRule
ForwardingRule 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.v1beta.IForwardingRule, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified ForwardingRule message, length delimited. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
IForwardingRule
ForwardingRule 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.v1beta.ForwardingRule;Creates a ForwardingRule 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 |
ForwardingRule |
ForwardingRule |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;Gets the default type url for ForwardingRule
| 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 ForwardingRule to JSON.
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.compute.v1beta.ForwardingRule, options?: $protobuf.IConversionOptions): { [k: string]: any };Creates a plain object from a ForwardingRule message. Also converts values to other types if specified.
| Parameters | |
|---|---|
| Name | Description |
message |
ForwardingRule
ForwardingRule |
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 ForwardingRule message.
| Parameter | |
|---|---|
| Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
| Returns | |
|---|---|
| Type | Description |
(string|null) |
|