Represents a Rollout.
Package
@google-cloud/deployConstructors
(constructor)(properties)
constructor(properties?: google.cloud.deploy.v1.IRollout);
Constructs a new Rollout.
Parameter | |
---|---|
Name | Description |
properties |
IRollout
Properties to set |
Properties
annotations
public annotations: { [k: string]: string };
Rollout annotations.
approvalState
public approvalState: (google.cloud.deploy.v1.Rollout.ApprovalState|keyof typeof google.cloud.deploy.v1.Rollout.ApprovalState);
Rollout approvalState.
approveTime
public approveTime?: (google.protobuf.ITimestamp|null);
Rollout approveTime.
createTime
public createTime?: (google.protobuf.ITimestamp|null);
Rollout createTime.
deployEndTime
public deployEndTime?: (google.protobuf.ITimestamp|null);
Rollout deployEndTime.
deployFailureCause
public deployFailureCause: (google.cloud.deploy.v1.Rollout.FailureCause|keyof typeof google.cloud.deploy.v1.Rollout.FailureCause);
Rollout deployFailureCause.
deployingBuild
public deployingBuild: string;
Rollout deployingBuild.
deployStartTime
public deployStartTime?: (google.protobuf.ITimestamp|null);
Rollout deployStartTime.
description
public description: string;
Rollout description.
enqueueTime
public enqueueTime?: (google.protobuf.ITimestamp|null);
Rollout enqueueTime.
etag
public etag: string;
Rollout etag.
failureReason
public failureReason: string;
Rollout failureReason.
labels
public labels: { [k: string]: string };
Rollout labels.
metadata
public metadata?: (google.cloud.deploy.v1.IMetadata|null);
Rollout metadata.
name
public name: string;
Rollout name.
phases
public phases: google.cloud.deploy.v1.IPhase[];
Rollout phases.
state
public state: (google.cloud.deploy.v1.Rollout.State|keyof typeof google.cloud.deploy.v1.Rollout.State);
Rollout state.
targetId
public targetId: string;
Rollout targetId.
uid
public uid: string;
Rollout uid.
Methods
create(properties)
public static create(properties?: google.cloud.deploy.v1.IRollout): google.cloud.deploy.v1.Rollout;
Creates a new Rollout instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IRollout
Properties to set |
Returns | |
---|---|
Type | Description |
google.cloud.deploy.v1.Rollout | Rollout instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.deploy.v1.Rollout;
Decodes a Rollout message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
google.cloud.deploy.v1.Rollout | Rollout |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.deploy.v1.Rollout;
Decodes a Rollout message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
google.cloud.deploy.v1.Rollout | Rollout |
encode(message, writer)
public static encode(message: google.cloud.deploy.v1.IRollout, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified Rollout message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IRollout
Rollout 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.deploy.v1.IRollout, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified Rollout message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IRollout
Rollout 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.deploy.v1.Rollout;
Creates a Rollout 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 |
google.cloud.deploy.v1.Rollout | Rollout |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for Rollout
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 Rollout to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.deploy.v1.Rollout, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a Rollout message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
google.cloud.deploy.v1.Rollout
Rollout |
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 Rollout message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|