Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class ServiceConnectionToken.
The ServiceConnectionToken resource.
Generated from protobuf message google.cloud.networkconnectivity.v1.ServiceConnectionToken
Namespace
Google \ Cloud \ NetworkConnectivity \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Immutable. The name of a ServiceConnectionToken. Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} See: https://google.aip.dev/122#fields-representing-resource-names |
↳ create_time |
Google\Protobuf\Timestamp
Output only. Time when the ServiceConnectionToken was created. |
↳ update_time |
Google\Protobuf\Timestamp
Output only. Time when the ServiceConnectionToken was updated. |
↳ labels |
array|Google\Protobuf\Internal\MapField
User-defined labels. |
↳ description |
string
A description of this resource. |
↳ network |
string
The resource path of the network associated with this token. Example: projects/{projectNumOrId}/global/networks/{resourceId}. |
↳ token |
string
Output only. The token generated by Automation. |
↳ expire_time |
Google\Protobuf\Timestamp
Output only. The time to which this token is valid. |
↳ etag |
string
Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
getName
Immutable. The name of a ServiceConnectionToken.
Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} See: https://google.aip.dev/122#fields-representing-resource-names
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Immutable. The name of a ServiceConnectionToken.
Format: projects/{project}/locations/{location}/ServiceConnectionTokens/{service_connection_token} See: https://google.aip.dev/122#fields-representing-resource-names
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateTime
Output only. Time when the ServiceConnectionToken was created.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
Output only. Time when the ServiceConnectionToken was created.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUpdateTime
Output only. Time when the ServiceConnectionToken was updated.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Time when the ServiceConnectionToken was updated.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLabels
User-defined labels.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setLabels
User-defined labels.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
A description of this resource.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
A description of this resource.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNetwork
The resource path of the network associated with this token.
Example: projects/{projectNumOrId}/global/networks/{resourceId}.
| Returns | |
|---|---|
| Type | Description |
string |
|
setNetwork
The resource path of the network associated with this token.
Example: projects/{projectNumOrId}/global/networks/{resourceId}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getToken
Output only. The token generated by Automation.
| Returns | |
|---|---|
| Type | Description |
string |
|
setToken
Output only. The token generated by Automation.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getExpireTime
Output only. The time to which this token is valid.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasExpireTime
clearExpireTime
setExpireTime
Output only. The time to which this token is valid.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEtag
Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasEtag
clearEtag
setEtag
Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|