As of January 1, 2020 this library no longer supports Python 2 on the latest released version. Library versions released prior to that date will continue to be available. For more information please visit Python 2 support on Google Cloud.

Types for Google Cloud Gkehub v1 API

class google.cloud.gkehub_v1.types.Authority(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Authority encodes how Google will recognize identities from this Membership. See the workload identity documentation for more details:

https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity

issuer

Optional. A JSON Web Token (JWT) issuer URI. issuer must start with https:// and be a valid URL with length <2000 characters.

If set, then Google will allow valid OIDC tokens from this issuer to authenticate within the workload_identity_pool. OIDC discovery will be performed on this URI to validate tokens from the issuer.

Clearing issuer disables Workload Identity. issuer cannot be directly modified; it must be cleared (and Workload Identity disabled) before using a new issuer (and re-enabling Workload Identity).

Type

str

workload_identity_pool

Output only. The name of the workload identity pool in which issuer will be recognized.

There is a single Workload Identity Pool per Hub that is shared between all Memberships that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is {PROJECT_ID}.hub.id.goog, although this is subject to change in newer versions of this API.

Type

str

identity_provider

Output only. An identity provider that reflects the issuer in the workload identity pool.

Type

str

oidc_jwks

Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).

When this field is set, OIDC discovery will NOT be performed on issuer, and instead OIDC tokens will be validated using this field.

Type

bytes

class google.cloud.gkehub_v1.types.CommonFeatureSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

CommonFeatureSpec contains Hub-wide configuration information

multiclusteringress

Multicluster Ingress-specific spec.

This field is a member of oneof feature_spec.

Type

google.cloud.gkehub_v1.multiclusteringress_v1.FeatureSpec

class google.cloud.gkehub_v1.types.CommonFeatureState(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

CommonFeatureState contains Hub-wide Feature status information.

state

Output only. The “running state” of the Feature in this Hub.

Type

google.cloud.gkehub_v1.types.FeatureState

class google.cloud.gkehub_v1.types.ConnectAgentResource(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

ConnectAgentResource represents a Kubernetes resource manifest for Connect Agent deployment.

type_

Kubernetes type of the resource.

Type

google.cloud.gkehub_v1.types.TypeMeta

manifest

YAML manifest of the resource.

Type

str

class google.cloud.gkehub_v1.types.CreateFeatureRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for the GkeHub.CreateFeature method.

parent

Required. The parent (project and location) where the Feature will be created. Specified in the format projects/*/locations/*.

Type

str

feature_id

The ID of the feature to create.

Type

str

resource

The Feature resource to create.

Type

google.cloud.gkehub_v1.types.Feature

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

class google.cloud.gkehub_v1.types.CreateMembershipRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for the GkeHub.CreateMembership method.

parent

Required. The parent (project and location) where the Memberships will be created. Specified in the format projects/*/locations/*.

Type

str

membership_id

Required. Client chosen ID for the membership. 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.

Type

str

resource

Required. The membership to create.

Type

google.cloud.gkehub_v1.types.Membership

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

class google.cloud.gkehub_v1.types.DeleteFeatureRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for GkeHub.DeleteFeature method.

name

Required. The Feature resource name in the format projects/*/locations/*/features/*.

Type

str

force

If set to true, the delete will ignore any outstanding resources for this Feature (that is, FeatureState.has_resources is set to true). These resources will NOT be cleaned up or modified in any way.

Type

bool

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

class google.cloud.gkehub_v1.types.DeleteMembershipRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for GkeHub.DeleteMembership method.

name

Required. The Membership resource name in the format projects/*/locations/*/memberships/*.

Type

str

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

force

Optional. If set to true, any subresource from this Membership will also be deleted. Otherwise, the request will only work if the Membership has no subresource.

Type

bool

class google.cloud.gkehub_v1.types.Feature(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Feature represents the settings and status of any Hub Feature.

name

Output only. The full, unique name of this Feature resource in the format projects/*/locations/*/features/*.

Type

str

labels

GCP labels for this Feature.

Type

MutableMapping[str, str]

resource_state

Output only. State of the Feature resource itself.

Type

google.cloud.gkehub_v1.types.FeatureResourceState

spec

Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.

Type

google.cloud.gkehub_v1.types.CommonFeatureSpec

membership_specs

Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused.

The keys indicate which Membership the configuration is for, in the form:

projects/{p}/locations/{l}/memberships/{m}

Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature’s project.

{p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.

Type

MutableMapping[str, google.cloud.gkehub_v1.types.MembershipFeatureSpec]

state

Output only. The Hub-wide Feature state.

Type

google.cloud.gkehub_v1.types.CommonFeatureState

membership_states

Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused.

The keys indicate which Membership the state is for, in the form:

projects/{p}/locations/{l}/memberships/{m}

Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature’s project number.

Type

MutableMapping[str, google.cloud.gkehub_v1.types.MembershipFeatureState]

create_time

Output only. When the Feature resource was created.

Type

google.protobuf.timestamp_pb2.Timestamp

update_time

Output only. When the Feature resource was last updated.

Type

google.protobuf.timestamp_pb2.Timestamp

delete_time

Output only. When the Feature resource was deleted.

Type

google.protobuf.timestamp_pb2.Timestamp

class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class MembershipSpecsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class MembershipStatesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class google.cloud.gkehub_v1.types.FeatureResourceState(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

FeatureResourceState describes the state of a Feature resource in the GkeHub API. See FeatureState for the “running state” of the Feature in the Hub and across Memberships.

state

The current state of the Feature resource in the Hub API.

Type

google.cloud.gkehub_v1.types.FeatureResourceState.State

class State(value)[source]

Bases: proto.enums.Enum

State describes the lifecycle status of a Feature.

Values:
STATE_UNSPECIFIED (0):

State is unknown or not set.

ENABLING (1):

The Feature is being enabled, and the Feature resource is being created. Once complete, the corresponding Feature will be enabled in this Hub.

ACTIVE (2):

The Feature is enabled in this Hub, and the Feature resource is fully available.

DISABLING (3):

The Feature is being disabled in this Hub, and the Feature resource is being deleted.

UPDATING (4):

The Feature resource is being updated.

SERVICE_UPDATING (5):

The Feature resource is being updated by the Hub Service.

class google.cloud.gkehub_v1.types.FeatureState(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

FeatureState describes the high-level state of a Feature. It may be used to describe a Feature’s state at the environ-level, or per-membershop, depending on the context.

code

The high-level, machine-readable status of this Feature.

Type

google.cloud.gkehub_v1.types.FeatureState.Code

description

A human-readable description of the current status.

Type

str

update_time

The time this status and any related Feature-specific details were updated.

Type

google.protobuf.timestamp_pb2.Timestamp

class Code(value)[source]

Bases: proto.enums.Enum

Code represents a machine-readable, high-level status of the Feature.

Values:
CODE_UNSPECIFIED (0):

Unknown or not set.

OK (1):

The Feature is operating normally.

WARNING (2):

The Feature has encountered an issue, and is operating in a degraded state. The Feature may need intervention to return to normal operation. See the description and any associated Feature-specific details for more information.

ERROR (3):

The Feature is not operating or is in a severely degraded state. The Feature may need intervention to return to normal operation. See the description and any associated Feature-specific details for more information.

class google.cloud.gkehub_v1.types.GenerateConnectManifestRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for GkeHub.GenerateConnectManifest method. .

name

Required. The Membership resource name the Agent will associate with, in the format projects/*/locations/*/memberships/*.

Type

str

namespace

Optional. Namespace for GKE Connect agent resources. Defaults to gke-connect.

The Connect Agent is authorized automatically when run in the default namespace. Otherwise, explicit authorization must be granted with an additional IAM binding.

Type

str

proxy

Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com requires the use of a proxy. Format must be in the form http(s)://{proxy_address}, depending on the HTTP/HTTPS protocol supported by the proxy. This will direct the connect agent’s outbound traffic through a HTTP(S) proxy.

Type

bytes

version

Optional. The Connect agent version to use. Defaults to the most current version.

Type

str

is_upgrade

Optional. If true, generate the resources for upgrade only. Some resources generated only for installation (e.g. secrets) will be excluded.

Type

bool

registry

Optional. The registry to fetch the connect agent image from. Defaults to gcr.io/gkeconnect.

Type

str

image_pull_secret_content

Optional. The image pull secret content for the registry, if not public.

Type

bytes

class google.cloud.gkehub_v1.types.GenerateConnectManifestResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

GenerateConnectManifestResponse contains manifest information for installing/upgrading a Connect agent.

manifest

The ordered list of Kubernetes resources that need to be applied to the cluster for GKE Connect agent installation/upgrade.

Type

MutableSequence[google.cloud.gkehub_v1.types.ConnectAgentResource]

class google.cloud.gkehub_v1.types.GetFeatureRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for GkeHub.GetFeature method.

name

Required. The Feature resource name in the format projects/*/locations/*/features/*

Type

str

class google.cloud.gkehub_v1.types.GetMembershipRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for GkeHub.GetMembership method.

name

Required. The Membership resource name in the format projects/*/locations/*/memberships/*.

Type

str

class google.cloud.gkehub_v1.types.GkeCluster(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

GkeCluster contains information specific to GKE clusters.

Immutable. Self-link of the Google Cloud resource for the GKE cluster. For example:

//container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster

Zonal clusters are also supported.

Type

str

cluster_missing

Output only. If cluster_missing is set then it denotes that the GKE cluster no longer exists in the GKE Control Plane.

Type

bool

class google.cloud.gkehub_v1.types.KubernetesMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

KubernetesMetadata provides informational metadata for Memberships representing Kubernetes clusters.

kubernetes_api_server_version

Output only. Kubernetes API server version string as reported by /version.

Type

str

node_provider_id

Output only. Node providerID as reported by the first node in the list of nodes on the Kubernetes endpoint. On Kubernetes platforms that support zero-node clusters (like GKE-on-GCP), the node_count will be zero and the node_provider_id will be empty.

Type

str

node_count

Output only. Node count as reported by Kubernetes nodes resources.

Type

int

vcpu_count

Output only. vCPU count as reported by Kubernetes nodes resources.

Type

int

memory_mb

Output only. The total memory capacity as reported by the sum of all Kubernetes nodes resources, defined in MB.

Type

int

update_time

Output only. The time at which these details were last updated. This update_time is different from the Membership-level update_time since EndpointDetails are updated internally for API consumers.

Type

google.protobuf.timestamp_pb2.Timestamp

class google.cloud.gkehub_v1.types.KubernetesResource(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

KubernetesResource contains the YAML manifests and configuration for Membership Kubernetes resources in the cluster. After CreateMembership or UpdateMembership, these resources should be re-applied in the cluster.

membership_cr_manifest

Input only. The YAML representation of the Membership CR. This field is ignored for GKE clusters where Hub can read the CR directly.

Callers should provide the CR that is currently present in the cluster during CreateMembership or UpdateMembership, or leave this field empty if none exists. The CR manifest is used to validate the cluster has not been registered with another Membership.

Type

str

membership_resources

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update.

This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

Type

MutableSequence[google.cloud.gkehub_v1.types.ResourceManifest]

connect_resources

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

Type

MutableSequence[google.cloud.gkehub_v1.types.ResourceManifest]

resource_options

Optional. Options for Kubernetes resource generation.

Type

google.cloud.gkehub_v1.types.ResourceOptions

class google.cloud.gkehub_v1.types.ListFeaturesRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for GkeHub.ListFeatures method.

parent

Required. The parent (project and location) where the Features will be listed. Specified in the format projects/*/locations/*.

Type

str

page_size

When requesting a ‘page’ of resources, page_size specifies number of resources to return. If unspecified or set to 0, all resources will be returned.

Type

int

page_token

Token returned by previous call to ListFeatures which specifies the position in the list from where to continue listing the resources.

Type

str

filter

Lists Features that match the filter expression, following the syntax outlined in https://google.aip.dev/160.

Examples:

  • Feature with the name “servicemesh” in project “foo-proj”:

    name = “projects/foo-proj/locations/global/features/servicemesh”

  • Features that have a label called foo:

    labels.foo:*

  • Features that have a label called foo whose value is bar:

    labels.foo = bar

Type

str

order_by

One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.

Type

str

class google.cloud.gkehub_v1.types.ListFeaturesResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Response message for the GkeHub.ListFeatures method.

resources

The list of matching Features

Type

MutableSequence[google.cloud.gkehub_v1.types.Feature]

next_page_token

A token to request the next page of resources from the ListFeatures method. The value of an empty string means that there are no more resources to return.

Type

str

class google.cloud.gkehub_v1.types.ListMembershipsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for GkeHub.ListMemberships method.

parent

Required. The parent (project and location) where the Memberships will be listed. Specified in the format projects/*/locations/*. projects/*/locations/- list memberships in all the regions.

Type

str

page_size

Optional. When requesting a ‘page’ of resources, page_size specifies number of resources to return. If unspecified or set to 0, all resources will be returned.

Type

int

page_token

Optional. Token returned by previous call to ListMemberships which specifies the position in the list from where to continue listing the resources.

Type

str

filter

Optional. Lists Memberships that match the filter expression, following the syntax outlined in https://google.aip.dev/160.

Examples:

  • Name is bar in project foo-proj and location global:

    name = “projects/foo-proj/locations/global/membership/bar”

  • Memberships that have a label called foo:

    labels.foo:*

  • Memberships that have a label called foo whose value is bar:

    labels.foo = bar

  • Memberships in the CREATING state:

    state = CREATING

Type

str

order_by

Optional. One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.

Type

str

class google.cloud.gkehub_v1.types.ListMembershipsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Response message for the GkeHub.ListMemberships method.

resources

The list of matching Memberships.

Type

MutableSequence[google.cloud.gkehub_v1.types.Membership]

next_page_token

A token to request the next page of resources from the ListMemberships method. The value of an empty string means that there are no more resources to return.

Type

str

unreachable

List of locations that could not be reached while fetching this list.

Type

MutableSequence[str]

class google.cloud.gkehub_v1.types.Membership(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Membership contains information about a member cluster.

endpoint

Optional. Endpoint information to reach this member.

This field is a member of oneof type.

Type

google.cloud.gkehub_v1.types.MembershipEndpoint

name

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.

Type

str

labels

Optional. Labels for this membership.

Type

MutableMapping[str, str]

description

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.

Type

str

state

Output only. State of the Membership resource.

Type

google.cloud.gkehub_v1.types.MembershipState

create_time

Output only. When the Membership was created.

Type

google.protobuf.timestamp_pb2.Timestamp

update_time

Output only. When the Membership was last updated.

Type

google.protobuf.timestamp_pb2.Timestamp

delete_time

Output only. When the Membership was deleted.

Type

google.protobuf.timestamp_pb2.Timestamp

external_id

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.

Type

str

last_connection_time

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.

Type

google.protobuf.timestamp_pb2.Timestamp

unique_id

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.

Type

str

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

Type

google.cloud.gkehub_v1.types.Authority

monitoring_config

Optional. The monitoring config information for this membership.

Type

google.cloud.gkehub_v1.types.MonitoringConfig

class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class google.cloud.gkehub_v1.types.MembershipEndpoint(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

MembershipEndpoint contains information needed to contact a Kubernetes API, endpoint and any additional Kubernetes metadata.

gke_cluster

Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

Type

google.cloud.gkehub_v1.types.GkeCluster

kubernetes_metadata

Output only. Useful Kubernetes-specific metadata.

Type

google.cloud.gkehub_v1.types.KubernetesMetadata

kubernetes_resource

Optional. The in-cluster Kubernetes Resources that should be applied for a correctly registered cluster, in the steady state. These resources:

  • Ensure that the cluster is exclusively registered to one and only one Hub Membership.

  • Propagate Workload Pool Information available in the Membership Authority field.

  • Ensure proper initial configuration of default Hub Features.

Type

google.cloud.gkehub_v1.types.KubernetesResource

google_managed

Output only. Whether the lifecycle of this membership is managed by a google cluster platform service.

Type

bool

class google.cloud.gkehub_v1.types.MembershipFeatureSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

MembershipFeatureSpec contains configuration information for a single Membership.

configmanagement

Config Management-specific spec.

This field is a member of oneof feature_spec.

Type

google.cloud.gkehub_v1.configmanagement_v1.MembershipSpec

class google.cloud.gkehub_v1.types.MembershipFeatureState(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

MembershipFeatureState contains Feature status information for a single Membership.

configmanagement

Config Management-specific state.

This field is a member of oneof feature_state.

Type

google.cloud.gkehub_v1.configmanagement_v1.MembershipState

state

The high-level state of this Feature for a single membership.

Type

google.cloud.gkehub_v1.types.FeatureState

class google.cloud.gkehub_v1.types.MembershipState(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

MembershipState describes the state of a Membership resource.

code

Output only. The current state of the Membership resource.

Type

google.cloud.gkehub_v1.types.MembershipState.Code

class Code(value)[source]

Bases: proto.enums.Enum

Code describes the state of a Membership resource.

Values:
CODE_UNSPECIFIED (0):

The code is not set.

CREATING (1):

The cluster is being registered.

READY (2):

The cluster is registered.

DELETING (3):

The cluster is being unregistered.

UPDATING (4):

The Membership is being updated.

SERVICE_UPDATING (5):

The Membership is being updated by the Hub Service.

class google.cloud.gkehub_v1.types.MonitoringConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

This field informs Fleet-based applications/services/UIs with the necessary information for where each underlying Cluster reports its metrics.

project_id

Immutable. Project used to report Metrics

Type

str

location

Immutable. Location used to report Metrics

Type

str

cluster

Immutable. Cluster name used to report metrics. For Anthos on VMWare/Baremetal, it would be in format memberClusters/cluster_name; And for Anthos on MultiCloud, it would be in format {azureClusters, awsClusters}/cluster_name.

Type

str

kubernetes_metrics_prefix

Kubernetes system metrics, if available, are written to this prefix. This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today but will migration to be under kubernetes.io/anthos

Type

str

cluster_hash

Immutable. Cluster hash, this is a unique string generated by google code, which does not contain any PII, which we can use to reference the cluster. This is expected to be created by the monitoring stack and persisted into the Cluster object as well as to GKE-Hub.

Type

str

class google.cloud.gkehub_v1.types.OperationMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Represents the metadata of the long-running operation.

create_time

Output only. The time the operation was created.

Type

google.protobuf.timestamp_pb2.Timestamp

end_time

Output only. The time the operation finished running.

Type

google.protobuf.timestamp_pb2.Timestamp

target

Output only. Server-defined resource path for the target of the operation.

Type

str

verb

Output only. Name of the verb executed by the operation.

Type

str

status_detail

Output only. Human-readable status of the operation, if any.

Type

str

cancel_requested

Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to Code.CANCELLED.

Type

bool

api_version

Output only. API version used to start the operation.

Type

str

class google.cloud.gkehub_v1.types.ResourceManifest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

ResourceManifest represents a single Kubernetes resource to be applied to the cluster.

manifest

YAML manifest of the resource.

Type

str

cluster_scoped

Whether the resource provided in the manifest is cluster_scoped. If unset, the manifest is assumed to be namespace scoped.

This field is used for REST mapping when applying the resource in a cluster.

Type

bool

class google.cloud.gkehub_v1.types.ResourceOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

ResourceOptions represent options for Kubernetes resource generation.

connect_version

Optional. The Connect agent version to use for connect_resources. Defaults to the latest GKE Connect version. The version must be a currently supported version, obsolete versions will be rejected.

Type

str

v1beta1_crd

Optional. Use apiextensions/v1beta1 instead of apiextensions/v1 for CustomResourceDefinition resources. This option should be set for clusters with Kubernetes apiserver versions <1.16.

Type

bool

k8s_version

Optional. Major version of the Kubernetes cluster. This is only used to determine which version to use for the CustomResourceDefinition resources, apiextensions/v1beta1 orapiextensions/v1.

Type

str

class google.cloud.gkehub_v1.types.TypeMeta(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

TypeMeta is the type information needed for content unmarshalling of Kubernetes resources in the manifest.

kind

Kind of the resource (e.g. Deployment).

Type

str

api_version

APIVersion of the resource (e.g. v1).

Type

str

class google.cloud.gkehub_v1.types.UpdateFeatureRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for GkeHub.UpdateFeature method.

name

Required. The Feature resource name in the format projects/*/locations/*/features/*.

Type

str

update_mask

Mask of fields to update.

Type

google.protobuf.field_mask_pb2.FieldMask

resource

Only fields specified in update_mask are updated. If you specify a field in the update_mask but don’t specify its value here that field will be deleted. If you are updating a map field, set the value of a key to null or empty string to delete the key from the map. It’s not possible to update a key’s value to the empty string. If you specify the update_mask to be a special path “*”, fully replaces all user-modifiable fields to match resource.

Type

google.cloud.gkehub_v1.types.Feature

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str

class google.cloud.gkehub_v1.types.UpdateMembershipRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request message for GkeHub.UpdateMembership method.

name

Required. The Membership resource name in the format projects/*/locations/*/memberships/*.

Type

str

update_mask

Required. Mask of fields to update.

Type

google.protobuf.field_mask_pb2.FieldMask

resource

Required. Only fields specified in update_mask are updated. If you specify a field in the update_mask but don’t specify its value here that field will be deleted. If you are updating a map field, set the value of a key to null or empty string to delete the key from the map. It’s not possible to update a key’s value to the empty string. If you specify the update_mask to be a special path “*”, fully replaces all user-modifiable fields to match resource.

Type

google.cloud.gkehub_v1.types.Membership

request_id

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Type

str