Represents a BackendRule.
Package
@google-cloud/service-managementConstructors
(constructor)(properties)
constructor(properties?: google.api.IBackendRule);
Constructs a new BackendRule.
Name | Description |
properties |
IBackendRule
Properties to set |
Properties
address
public address: string;
BackendRule address.
authentication
public authentication?: ("jwtAudience"|"disableAuth");
BackendRule authentication.
deadline
public deadline: number;
BackendRule deadline.
disableAuth
public disableAuth?: (boolean|null);
BackendRule disableAuth.
jwtAudience
public jwtAudience?: (string|null);
BackendRule jwtAudience.
minDeadline
public minDeadline: number;
BackendRule minDeadline.
operationDeadline
public operationDeadline: number;
BackendRule operationDeadline.
pathTranslation
public pathTranslation: (google.api.BackendRule.PathTranslation|keyof typeof google.api.BackendRule.PathTranslation);
BackendRule pathTranslation.
protocol
public protocol: string;
BackendRule protocol.
selector
public selector: string;
BackendRule selector.
Methods
create(properties)
public static create(properties?: google.api.IBackendRule): google.api.BackendRule;
Creates a new BackendRule instance using the specified properties.
Name | Description |
properties |
IBackendRule
Properties to set |
Type | Description |
google.api.BackendRule | BackendRule instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.BackendRule;
Decodes a BackendRule 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.api.BackendRule | BackendRule |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.BackendRule;
Decodes a BackendRule message from the specified reader or buffer, length delimited.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Type | Description |
google.api.BackendRule | BackendRule |
encode(message, writer)
public static encode(message: google.api.IBackendRule, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified BackendRule message. Does not implicitly messages.
Name | Description |
message |
IBackendRule
BackendRule 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.api.IBackendRule, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified BackendRule message, length delimited. Does not implicitly messages.
Name | Description |
message |
IBackendRule
BackendRule 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.api.BackendRule;
Creates a BackendRule message from a plain object. Also converts values to their respective internal types.
Name | Description |
object |
{ [k: string]: any }
Plain object |
Type | Description |
google.api.BackendRule | BackendRule |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for BackendRule
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 BackendRule to JSON.
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.api.BackendRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a BackendRule message. Also converts values to other types if specified.
Name | Description |
message |
google.api.BackendRule
BackendRule |
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 BackendRule message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|