Represents an Instance.
Package
@google-cloud/runConstructors
(constructor)(properties)
constructor
(
properties
?:
google
.
cloud
.
run
.
v2
.
IInstance
);
Constructs a new Instance.
Properties
annotations
public
annotations
:
{
[
k
:
string
]
:
string
};
Instance annotations.
binaryAuthorization
public
binaryAuthorization
?:
(
google
.
cloud
.
run
.
v2
.
IBinaryAuthorization
|
null
);
Instance binaryAuthorization.
client
public
client
:
string
;
Instance client.
clientVersion
public
clientVersion
:
string
;
Instance clientVersion.
conditions
public
conditions
:
google
.
cloud
.
run
.
v2
.
ICondition
[];
Instance conditions.
containers
public
containers
:
google
.
cloud
.
run
.
v2
.
IContainer
[];
Instance containers.
containerStatuses
public
containerStatuses
:
google
.
cloud
.
run
.
v2
.
IContainerStatus
[];
Instance containerStatuses.
createTime
public
createTime
?:
(
google
.
protobuf
.
ITimestamp
|
null
);
Instance createTime.
creator
public
creator
:
string
;
Instance creator.
deleteTime
public
deleteTime
?:
(
google
.
protobuf
.
ITimestamp
|
null
);
Instance deleteTime.
description
public
description
:
string
;
Instance description.
encryptionKey
public
encryptionKey
:
string
;
Instance encryptionKey.
encryptionKeyRevocationAction
public
encryptionKeyRevocationAction
:
(
google
.
cloud
.
run
.
v2
.
EncryptionKeyRevocationAction
|
keyof
typeof
google
.
cloud
.
run
.
v2
.
EncryptionKeyRevocationAction
);
Instance encryptionKeyRevocationAction.
encryptionKeyShutdownDuration
public
encryptionKeyShutdownDuration
?:
(
google
.
protobuf
.
IDuration
|
null
);
Instance encryptionKeyShutdownDuration.
etag
public
etag
:
string
;
Instance etag.
expireTime
public
expireTime
?:
(
google
.
protobuf
.
ITimestamp
|
null
);
Instance expireTime.
generation
public
generation
:
(
number
|
Long
|
string
);
Instance generation.
gpuZonalRedundancyDisabled
public
gpuZonalRedundancyDisabled
?:
(
boolean
|
null
);
Instance gpuZonalRedundancyDisabled.
iapEnabled
public
iapEnabled
:
boolean
;
Instance iapEnabled.
ingress
public
ingress
:
(
google
.
cloud
.
run
.
v2
.
IngressTraffic
|
keyof
typeof
google
.
cloud
.
run
.
v2
.
IngressTraffic
);
Instance ingress.
invokerIamDisabled
public
invokerIamDisabled
:
boolean
;
Instance invokerIamDisabled.
labels
public
labels
:
{
[
k
:
string
]
:
string
};
Instance labels.
lastModifier
public
lastModifier
:
string
;
Instance lastModifier.
launchStage
public
launchStage
:
(
google
.
api
.
LaunchStage
|
keyof
typeof
google
.
api
.
LaunchStage
);
Instance launchStage.
logUri
public
logUri
:
string
;
Instance logUri.
name
public
name
:
string
;
Instance name.
nodeSelector
public
nodeSelector
?:
(
google
.
cloud
.
run
.
v2
.
INodeSelector
|
null
);
Instance nodeSelector.
observedGeneration
public
observedGeneration
:
(
number
|
Long
|
string
);
Instance observedGeneration.
reconciling
public
reconciling
:
boolean
;
Instance reconciling.
satisfiesPzs
public
satisfiesPzs
:
boolean
;
Instance satisfiesPzs.
serviceAccount
public
serviceAccount
:
string
;
Instance serviceAccount.
terminalCondition
public
terminalCondition
?:
(
google
.
cloud
.
run
.
v2
.
ICondition
|
null
);
Instance terminalCondition.
uid
public
uid
:
string
;
Instance uid.
updateTime
public
updateTime
?:
(
google
.
protobuf
.
ITimestamp
|
null
);
Instance updateTime.
urls
public
urls
:
string
[];
Instance urls.
volumes
public
volumes
:
google
.
cloud
.
run
.
v2
.
IVolume
[];
Instance volumes.
vpcAccess
public
vpcAccess
?:
(
google
.
cloud
.
run
.
v2
.
IVpcAccess
|
null
);
Instance vpcAccess.
Methods
create(properties)
public
static
create
(
properties
?:
google
.
cloud
.
run
.
v2
.
IInstance
)
:
google
.
cloud
.
run
.
v2
.
Instance
;
Creates a new Instance instance using the specified properties.
decode(reader, length)
public
static
decode
(
reader
:
(
$protobuf
.
Reader
|
Uint8Array
),
length
?:
number
)
:
google
.
cloud
.
run
.
v2
.
Instance
;
Decodes an Instance message from the specified reader or buffer.
reader
( Reader
| Uint8Array
)
Reader or buffer to decode from
length
number
Message length if known beforehand
decodeDelimited(reader)
public
static
decodeDelimited
(
reader
:
(
$protobuf
.
Reader
|
Uint8Array
))
:
google
.
cloud
.
run
.
v2
.
Instance
;
Decodes an Instance message from the specified reader or buffer, length delimited.
reader
( Reader
| Uint8Array
)
Reader or buffer to decode from
encode(message, writer)
public
static
encode
(
message
:
google
.
cloud
.
run
.
v2
.
IInstance
,
writer
?:
$protobuf
.
Writer
)
:
$protobuf
.
Writer
;
Encodes the specified Instance message. Does not implicitly messages.
message
writer
$protobuf.Writer
Writer to encode to
$protobuf.Writer
Writer
encodeDelimited(message, writer)
public
static
encodeDelimited
(
message
:
google
.
cloud
.
run
.
v2
.
IInstance
,
writer
?:
$protobuf
.
Writer
)
:
$protobuf
.
Writer
;
Encodes the specified Instance message, length delimited. Does not implicitly messages.
message
writer
$protobuf.Writer
Writer to encode to
$protobuf.Writer
Writer
fromObject(object)
public
static
fromObject
(
object
:
{
[
k
:
string
]
:
any
})
:
google
.
cloud
.
run
.
v2
.
Instance
;
Creates an Instance message from a plain object. Also converts values to their respective internal types.
object
{ [k: string]: any }
Plain object
getTypeUrl(typeUrlPrefix)
public
static
getTypeUrl
(
typeUrlPrefix
?:
string
)
:
string
;
Gets the default type url for Instance
typeUrlPrefix
string
your custom typeUrlPrefix(default "type.googleapis.com")
string
The default type url
toJSON()
public
toJSON
()
:
{
[
k
:
string
]
:
any
};
Converts this Instance to JSON.
{ [k: string]: any }
JSON object
toObject(message, options)
public
static
toObject
(
message
:
google
.
cloud
.
run
.
v2
.
Instance
,
options
?:
$protobuf
.
IConversionOptions
)
:
{
[
k
:
string
]
:
any
};
Creates a plain object from an Instance message. Also converts values to other types if specified.
message
options
$protobuf.IConversionOptions
Conversion options
{ [k: string]: any }
Plain object
verify(message)
public
static
verify
(
message
:
{
[
k
:
string
]
:
any
})
:
(
string
|
null
);
Verifies an Instance message.
message
{ [k: string]: any }
Plain object to verify
(string|null)
null
if valid, otherwise the reason why it is not

