Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class Membership.
Membership contains information about a member cluster.
Generated from protobuf message google.cloud.gkehub.v1.Membership
Namespace
Google \ Cloud \ GkeHub \ V1
Methods
__construct
| Parameter |
| Name |
Description |
data |
mixed
|
getEndpoint
Optional. Endpoint information to reach this member.
hasEndpoint
setEndpoint
Optional. Endpoint information to reach this member.
| Returns |
| Type |
Description |
$this |
|
getName
Output only. The full, unique name of this Membership resource in the
format projects/*/locations/*/memberships/{membership_id}, set during
creation.
membership_id must be a valid RFC 1123 compliant DNS label:
- At most 63 characters in length
- It must consist of lower case alphanumeric characters or
-
- It must start and end with an alphanumeric character
Which can be expressed as the regex:
[a-z0-9]([-a-z0-9]*[a-z0-9])?,
with a maximum length of 63 characters.
| Returns |
| Type |
Description |
string |
|
setName
Output only. The full, unique name of this Membership resource in the
format projects/*/locations/*/memberships/{membership_id}, set during
creation.
membership_id must be a valid RFC 1123 compliant DNS label:
- At most 63 characters in length
- It must consist of lower case alphanumeric characters or
-
- It must start and end with an alphanumeric character
Which can be expressed as the regex:
[a-z0-9]([-a-z0-9]*[a-z0-9])?,
with a maximum length of 63 characters.
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getLabels
Optional. Labels for this membership.
setLabels
Optional. Labels for this membership.
| Returns |
| Type |
Description |
$this |
|
getDescription
Output only. Description of this membership, limited to 63 characters.
Must match the regex: [a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*
This field is present for legacy purposes.
| Returns |
| Type |
Description |
string |
|
setDescription
Output only. Description of this membership, limited to 63 characters.
Must match the regex: [a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*
This field is present for legacy purposes.
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getState
Output only. State of the Membership resource.
hasState
clearState
setState
Output only. State of the Membership resource.
| Returns |
| Type |
Description |
$this |
|
getCreateTime
Output only. When the Membership was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. When the Membership was created.
| Returns |
| Type |
Description |
$this |
|
getUpdateTime
Output only. When the Membership was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. When the Membership was last updated.
| Returns |
| Type |
Description |
$this |
|
getDeleteTime
Output only. When the Membership was deleted.
hasDeleteTime
clearDeleteTime
setDeleteTime
Output only. When the Membership was deleted.
| Returns |
| Type |
Description |
$this |
|
getExternalId
Optional. An externally-generated and managed ID for this Membership. This
ID may be modified after creation, but this is not recommended.
The ID must match the regex: [a-zA-Z0-9][a-zA-Z0-9_\-\.]*
If this Membership represents a Kubernetes cluster, this value should be
set to the UID of the kube-system namespace object.
| Returns |
| Type |
Description |
string |
|
setExternalId
Optional. An externally-generated and managed ID for this Membership. This
ID may be modified after creation, but this is not recommended.
The ID must match the regex: [a-zA-Z0-9][a-zA-Z0-9_\-\.]*
If this Membership represents a Kubernetes cluster, this value should be
set to the UID of the kube-system namespace object.
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getLastConnectionTime
Output only. For clusters using Connect, the timestamp of the most recent
connection established with Google Cloud. This time is updated every
several minutes, not continuously. For clusters that do not use GKE
Connect, or that have never connected successfully, this field will be
unset.
hasLastConnectionTime
clearLastConnectionTime
setLastConnectionTime
Output only. For clusters using Connect, the timestamp of the most recent
connection established with Google Cloud. This time is updated every
several minutes, not continuously. For clusters that do not use GKE
Connect, or that have never connected successfully, this field will be
unset.
| Returns |
| Type |
Description |
$this |
|
getUniqueId
Output only. Google-generated UUID for this resource. This is unique across
all Membership resources. If a Membership resource is deleted and another
resource with the same name is created, it gets a different unique_id.
| Returns |
| Type |
Description |
string |
|
setUniqueId
Output only. Google-generated UUID for this resource. This is unique across
all Membership resources. If a Membership resource is deleted and another
resource with the same name is created, it gets a different unique_id.
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getAuthority
hasAuthority
clearAuthority
setAuthority
| Returns |
| Type |
Description |
$this |
|
getMonitoringConfig
Optional. The monitoring config information for this membership.
hasMonitoringConfig
clearMonitoringConfig
setMonitoringConfig
Optional. The monitoring config information for this membership.
| Returns |
| Type |
Description |
$this |
|
getType
| Returns |
| Type |
Description |
string |
|