Represents an UpgradeInfoEvent.
Package
@google-cloud/containerConstructors
(constructor)(properties)
constructor(properties?: google.container.v1.IUpgradeInfoEvent);
Constructs a new UpgradeInfoEvent.
Parameter | |
---|---|
Name | Description |
properties |
IUpgradeInfoEvent
Properties to set |
Properties
currentVersion
public currentVersion: string;
UpgradeInfoEvent currentVersion.
description
public description: string;
UpgradeInfoEvent description.
endTime
public endTime?: (google.protobuf.ITimestamp|null);
UpgradeInfoEvent endTime.
operation
public operation: string;
UpgradeInfoEvent operation.
resource
public resource: string;
UpgradeInfoEvent resource.
resourceType
public resourceType: (google.container.v1.UpgradeResourceType|keyof typeof google.container.v1.UpgradeResourceType);
UpgradeInfoEvent resourceType.
startTime
public startTime?: (google.protobuf.ITimestamp|null);
UpgradeInfoEvent startTime.
state
public state: (google.container.v1.UpgradeInfoEvent.State|keyof typeof google.container.v1.UpgradeInfoEvent.State);
UpgradeInfoEvent state.
targetVersion
public targetVersion: string;
UpgradeInfoEvent targetVersion.
Methods
create(properties)
public static create(properties?: google.container.v1.IUpgradeInfoEvent): google.container.v1.UpgradeInfoEvent;
Creates a new UpgradeInfoEvent instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IUpgradeInfoEvent
Properties to set |
Returns | |
---|---|
Type | Description |
UpgradeInfoEvent |
UpgradeInfoEvent instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.UpgradeInfoEvent;
Decodes an UpgradeInfoEvent 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 |
UpgradeInfoEvent |
UpgradeInfoEvent |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.UpgradeInfoEvent;
Decodes an UpgradeInfoEvent message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
UpgradeInfoEvent |
UpgradeInfoEvent |
encode(message, writer)
public static encode(message: google.container.v1.IUpgradeInfoEvent, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified UpgradeInfoEvent message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IUpgradeInfoEvent
UpgradeInfoEvent 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.container.v1.IUpgradeInfoEvent, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified UpgradeInfoEvent message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IUpgradeInfoEvent
UpgradeInfoEvent 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.container.v1.UpgradeInfoEvent;
Creates an UpgradeInfoEvent 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 |
UpgradeInfoEvent |
UpgradeInfoEvent |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for UpgradeInfoEvent
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 UpgradeInfoEvent to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.container.v1.UpgradeInfoEvent, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from an UpgradeInfoEvent message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
UpgradeInfoEvent
UpgradeInfoEvent |
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 an UpgradeInfoEvent message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|