Google Cloud Gke Hub V1beta1 Client - Class Membership (0.8.2)

Reference documentation and code samples for the Google Cloud Gke Hub V1beta1 Client class Membership.

Membership contains information about a member cluster.

Generated from protobuf message google.cloud.gkehub.v1beta1.Membership

Namespace

Google \ Cloud \ GkeHub \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

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: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or - 3. 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.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. GCP labels for this membership.

↳ description string

Optional. Description of this membership, limited to 63 characters. Must match the regex: [a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*

↳ endpoint Google\Cloud\GkeHub\V1beta1\MembershipEndpoint

Optional. Endpoint information to reach this member.

↳ state Google\Cloud\GkeHub\V1beta1\MembershipState

Output only. State of the Membership resource.

↳ authority Google\Cloud\GkeHub\V1beta1\Authority

Optional. How to identify workloads from this Membership. See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity

↳ create_time Google\Protobuf\Timestamp

Output only. When the Membership was created.

↳ update_time Google\Protobuf\Timestamp

Output only. When the Membership was last updated.

↳ delete_time Google\Protobuf\Timestamp

Output only. When the Membership was deleted.

↳ external_id string

Optional. An externally-generated and managed ID for this Membership. This ID may be modified after creation, but this is not recommended. For GKE clusters, external_id is managed by the Hub API and updates will be ignored. 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.

↳ last_connection_time Google\Protobuf\Timestamp

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.

↳ unique_id string

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.

↳ infrastructure_type int

Optional. The infrastructure type this Membership is running on.

↳ monitoring_config Google\Cloud\GkeHub\V1beta1\MonitoringConfig

Optional. The monitoring config information for this membership.

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:

  1. At most 63 characters in length
  2. It must consist of lower case alphanumeric characters or -
  3. 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
TypeDescription
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:

  1. At most 63 characters in length
  2. It must consist of lower case alphanumeric characters or -
  3. 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
NameDescription
var string
Returns
TypeDescription
$this

getLabels

Optional. GCP labels for this membership.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Optional. GCP labels for this membership.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getDescription

Optional. Description of this membership, limited to 63 characters.

Must match the regex: [a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*

Returns
TypeDescription
string

setDescription

Optional. Description of this membership, limited to 63 characters.

Must match the regex: [a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEndpoint

Optional. Endpoint information to reach this member.

Returns
TypeDescription
Google\Cloud\GkeHub\V1beta1\MembershipEndpoint|null

hasEndpoint

setEndpoint

Optional. Endpoint information to reach this member.

Parameter
NameDescription
var Google\Cloud\GkeHub\V1beta1\MembershipEndpoint
Returns
TypeDescription
$this

getState

Output only. State of the Membership resource.

Returns
TypeDescription
Google\Cloud\GkeHub\V1beta1\MembershipState|null

hasState

clearState

setState

Output only. State of the Membership resource.

Parameter
NameDescription
var Google\Cloud\GkeHub\V1beta1\MembershipState
Returns
TypeDescription
$this

getAuthority

Optional. How to identify workloads from this Membership.

See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity

Returns
TypeDescription
Google\Cloud\GkeHub\V1beta1\Authority|null

hasAuthority

clearAuthority

setAuthority

Optional. How to identify workloads from this Membership.

See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity

Parameter
NameDescription
var Google\Cloud\GkeHub\V1beta1\Authority
Returns
TypeDescription
$this

getCreateTime

Output only. When the Membership was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. When the Membership was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. When the Membership was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. When the Membership was last updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDeleteTime

Output only. When the Membership was deleted.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasDeleteTime

clearDeleteTime

setDeleteTime

Output only. When the Membership was deleted.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getExternalId

Optional. An externally-generated and managed ID for this Membership. This ID may be modified after creation, but this is not recommended. For GKE clusters, external_id is managed by the Hub API and updates will be ignored.

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
TypeDescription
string

setExternalId

Optional. An externally-generated and managed ID for this Membership. This ID may be modified after creation, but this is not recommended. For GKE clusters, external_id is managed by the Hub API and updates will be ignored.

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
NameDescription
var string
Returns
TypeDescription
$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.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

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.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getInfrastructureType

Optional. The infrastructure type this Membership is running on.

Returns
TypeDescription
int

setInfrastructureType

Optional. The infrastructure type this Membership is running on.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMonitoringConfig

Optional. The monitoring config information for this membership.

Returns
TypeDescription
Google\Cloud\GkeHub\V1beta1\MonitoringConfig|null

hasMonitoringConfig

clearMonitoringConfig

setMonitoringConfig

Optional. The monitoring config information for this membership.

Parameter
NameDescription
var Google\Cloud\GkeHub\V1beta1\MonitoringConfig
Returns
TypeDescription
$this

getType

Returns
TypeDescription
string