gkehub

package
v0.0.0-...-d307bd8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Membership_InfrastructureType_name = map[int32]string{
		0: "INFRASTRUCTURE_TYPE_UNSPECIFIED",
		1: "ON_PREM",
		2: "MULTI_CLOUD",
	}
	Membership_InfrastructureType_value = map[string]int32{
		"INFRASTRUCTURE_TYPE_UNSPECIFIED": 0,
		"ON_PREM":                         1,
		"MULTI_CLOUD":                     2,
	}
)

Enum value maps for Membership_InfrastructureType.

View Source
var (
	MembershipState_Code_name = map[int32]string{
		0: "CODE_UNSPECIFIED",
		1: "CREATING",
		2: "READY",
		3: "DELETING",
		4: "UPDATING",
		5: "SERVICE_UPDATING",
	}
	MembershipState_Code_value = map[string]int32{
		"CODE_UNSPECIFIED": 0,
		"CREATING":         1,
		"READY":            2,
		"DELETING":         3,
		"UPDATING":         4,
		"SERVICE_UPDATING": 5,
	}
)

Enum value maps for MembershipState_Code.

View Source
var File_google_cloud_gkehub_v1alpha2_membership_proto protoreflect.FileDescriptor

Functions

func RegisterGkeHubServer

func RegisterGkeHubServer(s *grpc.Server, srv GkeHubServer)

Types

type Authority

type Authority struct {

	// 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, unless
	// `oidc_jwks` is set.
	//
	// 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).
	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// 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.
	OidcJwks []byte `protobuf:"bytes,5,opt,name=oidc_jwks,json=oidcJwks,proto3" json:"oidc_jwks,omitempty"`
	// Output only. An identity provider that reflects the `issuer` in the workload identity
	// pool.
	IdentityProvider string `protobuf:"bytes,3,opt,name=identity_provider,json=identityProvider,proto3" json:"identity_provider,omitempty"`
	// 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.
	WorkloadIdentityPool string `protobuf:"bytes,4,opt,name=workload_identity_pool,json=workloadIdentityPool,proto3" json:"workload_identity_pool,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Authority) Descriptor deprecated

func (*Authority) Descriptor() ([]byte, []int)

Deprecated: Use Authority.ProtoReflect.Descriptor instead.

func (*Authority) GetIdentityProvider

func (x *Authority) GetIdentityProvider() string

func (*Authority) GetIssuer

func (x *Authority) GetIssuer() string

func (*Authority) GetOidcJwks

func (x *Authority) GetOidcJwks() []byte

func (*Authority) GetWorkloadIdentityPool

func (x *Authority) GetWorkloadIdentityPool() string

func (*Authority) ProtoMessage

func (*Authority) ProtoMessage()

func (*Authority) ProtoReflect

func (x *Authority) ProtoReflect() protoreflect.Message

func (*Authority) Reset

func (x *Authority) Reset()

func (*Authority) String

func (x *Authority) String() string

type ConnectAgentResource

type ConnectAgentResource struct {

	// Kubernetes type of the resource.
	Type *TypeMeta `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// YAML manifest of the resource.
	Manifest string `protobuf:"bytes,2,opt,name=manifest,proto3" json:"manifest,omitempty"`
	// contains filtered or unexported fields
}

ConnectAgentResource represents a Kubernetes resource manifest for Connect Agent deployment.

func (*ConnectAgentResource) Descriptor deprecated

func (*ConnectAgentResource) Descriptor() ([]byte, []int)

Deprecated: Use ConnectAgentResource.ProtoReflect.Descriptor instead.

func (*ConnectAgentResource) GetManifest

func (x *ConnectAgentResource) GetManifest() string

func (*ConnectAgentResource) GetType

func (x *ConnectAgentResource) GetType() *TypeMeta

func (*ConnectAgentResource) ProtoMessage

func (*ConnectAgentResource) ProtoMessage()

func (*ConnectAgentResource) ProtoReflect

func (x *ConnectAgentResource) ProtoReflect() protoreflect.Message

func (*ConnectAgentResource) Reset

func (x *ConnectAgentResource) Reset()

func (*ConnectAgentResource) String

func (x *ConnectAgentResource) String() string

type CreateMembershipRequest

type CreateMembershipRequest struct {

	// Required. The parent (project and location) where the Memberships will be created.
	// Specified in the format `projects/*/locations/*`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// 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.
	MembershipId string `protobuf:"bytes,2,opt,name=membership_id,json=membershipId,proto3" json:"membership_id,omitempty"`
	// Required. The membership to create.
	Resource *Membership `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

Request message for the `GkeHub.CreateMembership` method.

func (*CreateMembershipRequest) Descriptor deprecated

func (*CreateMembershipRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateMembershipRequest.ProtoReflect.Descriptor instead.

func (*CreateMembershipRequest) GetMembershipId

func (x *CreateMembershipRequest) GetMembershipId() string

func (*CreateMembershipRequest) GetParent

func (x *CreateMembershipRequest) GetParent() string

func (*CreateMembershipRequest) GetResource

func (x *CreateMembershipRequest) GetResource() *Membership

func (*CreateMembershipRequest) ProtoMessage

func (*CreateMembershipRequest) ProtoMessage()

func (*CreateMembershipRequest) ProtoReflect

func (x *CreateMembershipRequest) ProtoReflect() protoreflect.Message

func (*CreateMembershipRequest) Reset

func (x *CreateMembershipRequest) Reset()

func (*CreateMembershipRequest) String

func (x *CreateMembershipRequest) String() string

type DeleteMembershipRequest

type DeleteMembershipRequest struct {

	// Required. The Membership resource name in the format
	// `projects/*/locations/*/memberships/*`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for `GkeHub.DeleteMembership` method.

func (*DeleteMembershipRequest) Descriptor deprecated

func (*DeleteMembershipRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteMembershipRequest.ProtoReflect.Descriptor instead.

func (*DeleteMembershipRequest) GetName

func (x *DeleteMembershipRequest) GetName() string

func (*DeleteMembershipRequest) ProtoMessage

func (*DeleteMembershipRequest) ProtoMessage()

func (*DeleteMembershipRequest) ProtoReflect

func (x *DeleteMembershipRequest) ProtoReflect() protoreflect.Message

func (*DeleteMembershipRequest) Reset

func (x *DeleteMembershipRequest) Reset()

func (*DeleteMembershipRequest) String

func (x *DeleteMembershipRequest) String() string

type GenerateConnectManifestRequest

type GenerateConnectManifestRequest struct {

	// Required. The Membership resource name the Agent will associate with, in the format
	// `projects/*/locations/*/memberships/*`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 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.
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// 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.
	Proxy []byte `protobuf:"bytes,3,opt,name=proxy,proto3" json:"proxy,omitempty"`
	// Optional. The Connect agent version to use. Defaults to the most current version.
	Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	// Optional. If true, generate the resources for upgrade only. Some resources
	// generated only for installation (e.g. secrets) will be excluded.
	IsUpgrade bool `protobuf:"varint,5,opt,name=is_upgrade,json=isUpgrade,proto3" json:"is_upgrade,omitempty"`
	// Optional. The registry to fetch the connect agent image from. Defaults to
	// gcr.io/gkeconnect.
	Registry string `protobuf:"bytes,6,opt,name=registry,proto3" json:"registry,omitempty"`
	// Optional. The image pull secret content for the registry, if not public.
	ImagePullSecretContent []byte `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for `GkeHub.GenerateConnectManifest` method. .

func (*GenerateConnectManifestRequest) Descriptor deprecated

func (*GenerateConnectManifestRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenerateConnectManifestRequest.ProtoReflect.Descriptor instead.

func (*GenerateConnectManifestRequest) GetImagePullSecretContent

func (x *GenerateConnectManifestRequest) GetImagePullSecretContent() []byte

func (*GenerateConnectManifestRequest) GetIsUpgrade

func (x *GenerateConnectManifestRequest) GetIsUpgrade() bool

func (*GenerateConnectManifestRequest) GetName

func (*GenerateConnectManifestRequest) GetNamespace

func (x *GenerateConnectManifestRequest) GetNamespace() string

func (*GenerateConnectManifestRequest) GetProxy

func (x *GenerateConnectManifestRequest) GetProxy() []byte

func (*GenerateConnectManifestRequest) GetRegistry

func (x *GenerateConnectManifestRequest) GetRegistry() string

func (*GenerateConnectManifestRequest) GetVersion

func (x *GenerateConnectManifestRequest) GetVersion() string

func (*GenerateConnectManifestRequest) ProtoMessage

func (*GenerateConnectManifestRequest) ProtoMessage()

func (*GenerateConnectManifestRequest) ProtoReflect

func (*GenerateConnectManifestRequest) Reset

func (x *GenerateConnectManifestRequest) Reset()

func (*GenerateConnectManifestRequest) String

type GenerateConnectManifestResponse

type GenerateConnectManifestResponse struct {

	// The ordered list of Kubernetes resources that need to be applied to the
	// cluster for GKE Connect agent installation/upgrade.
	Manifest []*ConnectAgentResource `protobuf:"bytes,1,rep,name=manifest,proto3" json:"manifest,omitempty"`
	// contains filtered or unexported fields
}

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

func (*GenerateConnectManifestResponse) Descriptor deprecated

func (*GenerateConnectManifestResponse) Descriptor() ([]byte, []int)

Deprecated: Use GenerateConnectManifestResponse.ProtoReflect.Descriptor instead.

func (*GenerateConnectManifestResponse) GetManifest

func (*GenerateConnectManifestResponse) ProtoMessage

func (*GenerateConnectManifestResponse) ProtoMessage()

func (*GenerateConnectManifestResponse) ProtoReflect

func (*GenerateConnectManifestResponse) Reset

func (*GenerateConnectManifestResponse) String

type GetMembershipRequest

type GetMembershipRequest struct {

	// Required. The Membership resource name in the format
	// `projects/*/locations/*/memberships/*`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for `GkeHub.GetMembership` method.

func (*GetMembershipRequest) Descriptor deprecated

func (*GetMembershipRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMembershipRequest.ProtoReflect.Descriptor instead.

func (*GetMembershipRequest) GetName

func (x *GetMembershipRequest) GetName() string

func (*GetMembershipRequest) ProtoMessage

func (*GetMembershipRequest) ProtoMessage()

func (*GetMembershipRequest) ProtoReflect

func (x *GetMembershipRequest) ProtoReflect() protoreflect.Message

func (*GetMembershipRequest) Reset

func (x *GetMembershipRequest) Reset()

func (*GetMembershipRequest) String

func (x *GetMembershipRequest) String() string

type GkeCluster

type GkeCluster struct {

	// Immutable. Self-link of the GCP 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.
	ResourceLink string `protobuf:"bytes,1,opt,name=resource_link,json=resourceLink,proto3" json:"resource_link,omitempty"`
	// Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
	// exists in the GKE Control Plane.
	ClusterMissing bool `protobuf:"varint,2,opt,name=cluster_missing,json=clusterMissing,proto3" json:"cluster_missing,omitempty"`
	// contains filtered or unexported fields
}

GkeCluster contains information specific to GKE clusters.

func (*GkeCluster) Descriptor deprecated

func (*GkeCluster) Descriptor() ([]byte, []int)

Deprecated: Use GkeCluster.ProtoReflect.Descriptor instead.

func (*GkeCluster) GetClusterMissing

func (x *GkeCluster) GetClusterMissing() bool
func (x *GkeCluster) GetResourceLink() string

func (*GkeCluster) ProtoMessage

func (*GkeCluster) ProtoMessage()

func (*GkeCluster) ProtoReflect

func (x *GkeCluster) ProtoReflect() protoreflect.Message

func (*GkeCluster) Reset

func (x *GkeCluster) Reset()

func (*GkeCluster) String

func (x *GkeCluster) String() string

type GkeHubClient

type GkeHubClient interface {
	// Lists Memberships in a given project and location.
	ListMemberships(ctx context.Context, in *ListMembershipsRequest, opts ...grpc.CallOption) (*ListMembershipsResponse, error)
	// Gets the details of a Membership.
	GetMembership(ctx context.Context, in *GetMembershipRequest, opts ...grpc.CallOption) (*Membership, error)
	// Creates a new Membership.
	//
	// **This is currently only supported for GKE clusters on Google Cloud**.
	// To register other clusters, follow the instructions at
	// https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
	CreateMembership(ctx context.Context, in *CreateMembershipRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Removes a Membership.
	//
	// **This is currently only supported for GKE clusters on Google Cloud**.
	// To unregister other clusters, follow the instructions at
	// https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
	DeleteMembership(ctx context.Context, in *DeleteMembershipRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Updates an existing Membership.
	UpdateMembership(ctx context.Context, in *UpdateMembershipRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Generates the manifest for deployment of the GKE connect agent.
	//
	// **This method is used internally by Google-provided libraries.**
	// Most clients should not need to call this method directly.
	GenerateConnectManifest(ctx context.Context, in *GenerateConnectManifestRequest, opts ...grpc.CallOption) (*GenerateConnectManifestResponse, error)
	// Initializes the Hub in this project, which includes creating the default
	// Hub Service Account and the Hub Workload Identity Pool. Initialization is
	// optional, and happens automatically when the first Membership is created.
	//
	// InitializeHub should be called when the first Membership cannot be
	// registered without these resources. A common example is granting the Hub
	// Service Account access to another project, which requires the account to
	// exist first.
	InitializeHub(ctx context.Context, in *InitializeHubRequest, opts ...grpc.CallOption) (*InitializeHubResponse, error)
}

GkeHubClient is the client API for GkeHub service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGkeHubClient

func NewGkeHubClient(cc grpc.ClientConnInterface) GkeHubClient

type GkeHubServer

type GkeHubServer interface {
	// Lists Memberships in a given project and location.
	ListMemberships(context.Context, *ListMembershipsRequest) (*ListMembershipsResponse, error)
	// Gets the details of a Membership.
	GetMembership(context.Context, *GetMembershipRequest) (*Membership, error)
	// Creates a new Membership.
	//
	// **This is currently only supported for GKE clusters on Google Cloud**.
	// To register other clusters, follow the instructions at
	// https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
	CreateMembership(context.Context, *CreateMembershipRequest) (*longrunning.Operation, error)
	// Removes a Membership.
	//
	// **This is currently only supported for GKE clusters on Google Cloud**.
	// To unregister other clusters, follow the instructions at
	// https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
	DeleteMembership(context.Context, *DeleteMembershipRequest) (*longrunning.Operation, error)
	// Updates an existing Membership.
	UpdateMembership(context.Context, *UpdateMembershipRequest) (*longrunning.Operation, error)
	// Generates the manifest for deployment of the GKE connect agent.
	//
	// **This method is used internally by Google-provided libraries.**
	// Most clients should not need to call this method directly.
	GenerateConnectManifest(context.Context, *GenerateConnectManifestRequest) (*GenerateConnectManifestResponse, error)
	// Initializes the Hub in this project, which includes creating the default
	// Hub Service Account and the Hub Workload Identity Pool. Initialization is
	// optional, and happens automatically when the first Membership is created.
	//
	// InitializeHub should be called when the first Membership cannot be
	// registered without these resources. A common example is granting the Hub
	// Service Account access to another project, which requires the account to
	// exist first.
	InitializeHub(context.Context, *InitializeHubRequest) (*InitializeHubResponse, error)
}

GkeHubServer is the server API for GkeHub service.

type InitializeHubRequest

type InitializeHubRequest struct {

	// Required. The Hub to initialize, in the format
	// `projects/*/locations/*/memberships/*`.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

Request message for the InitializeHub method.

func (*InitializeHubRequest) Descriptor deprecated

func (*InitializeHubRequest) Descriptor() ([]byte, []int)

Deprecated: Use InitializeHubRequest.ProtoReflect.Descriptor instead.

func (*InitializeHubRequest) GetProject

func (x *InitializeHubRequest) GetProject() string

func (*InitializeHubRequest) ProtoMessage

func (*InitializeHubRequest) ProtoMessage()

func (*InitializeHubRequest) ProtoReflect

func (x *InitializeHubRequest) ProtoReflect() protoreflect.Message

func (*InitializeHubRequest) Reset

func (x *InitializeHubRequest) Reset()

func (*InitializeHubRequest) String

func (x *InitializeHubRequest) String() string

type InitializeHubResponse

type InitializeHubResponse struct {

	// Name of the Hub default service identity, in the format:
	//
	//     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
	//
	// The service account has `roles/gkehub.serviceAgent` in the Hub project.
	ServiceIdentity string `protobuf:"bytes,1,opt,name=service_identity,json=serviceIdentity,proto3" json:"service_identity,omitempty"`
	// The Workload Identity Pool used for Workload Identity-enabled clusters
	// registered with this Hub. Format: `<project-id>.hub.id.goog`
	WorkloadIdentityPool string `protobuf:"bytes,2,opt,name=workload_identity_pool,json=workloadIdentityPool,proto3" json:"workload_identity_pool,omitempty"`
	// contains filtered or unexported fields
}

Response message for the InitializeHub method.

func (*InitializeHubResponse) Descriptor deprecated

func (*InitializeHubResponse) Descriptor() ([]byte, []int)

Deprecated: Use InitializeHubResponse.ProtoReflect.Descriptor instead.

func (*InitializeHubResponse) GetServiceIdentity

func (x *InitializeHubResponse) GetServiceIdentity() string

func (*InitializeHubResponse) GetWorkloadIdentityPool

func (x *InitializeHubResponse) GetWorkloadIdentityPool() string

func (*InitializeHubResponse) ProtoMessage

func (*InitializeHubResponse) ProtoMessage()

func (*InitializeHubResponse) ProtoReflect

func (x *InitializeHubResponse) ProtoReflect() protoreflect.Message

func (*InitializeHubResponse) Reset

func (x *InitializeHubResponse) Reset()

func (*InitializeHubResponse) String

func (x *InitializeHubResponse) String() string

type KubernetesMetadata

type KubernetesMetadata struct {

	// Output only. Kubernetes API server version string as reported by '/version'.
	KubernetesApiServerVersion string `` /* 143-byte string literal not displayed */
	// 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.
	NodeProviderId string `protobuf:"bytes,2,opt,name=node_provider_id,json=nodeProviderId,proto3" json:"node_provider_id,omitempty"`
	// Output only. Node count as reported by Kubernetes nodes resources.
	NodeCount int32 `protobuf:"varint,3,opt,name=node_count,json=nodeCount,proto3" json:"node_count,omitempty"`
	// Output only. vCPU count as reported by Kubernetes nodes resources.
	VcpuCount int32 `protobuf:"varint,4,opt,name=vcpu_count,json=vcpuCount,proto3" json:"vcpu_count,omitempty"`
	// Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
	// resources, defined in MB.
	MemoryMb int32 `protobuf:"varint,5,opt,name=memory_mb,json=memoryMb,proto3" json:"memory_mb,omitempty"`
	// 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.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,100,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

KubernetesMetadata provides informational metadata for Memberships that are created from Kubernetes Endpoints (currently, these are equivalent to Kubernetes clusters).

func (*KubernetesMetadata) Descriptor deprecated

func (*KubernetesMetadata) Descriptor() ([]byte, []int)

Deprecated: Use KubernetesMetadata.ProtoReflect.Descriptor instead.

func (*KubernetesMetadata) GetKubernetesApiServerVersion

func (x *KubernetesMetadata) GetKubernetesApiServerVersion() string

func (*KubernetesMetadata) GetMemoryMb

func (x *KubernetesMetadata) GetMemoryMb() int32

func (*KubernetesMetadata) GetNodeCount

func (x *KubernetesMetadata) GetNodeCount() int32

func (*KubernetesMetadata) GetNodeProviderId

func (x *KubernetesMetadata) GetNodeProviderId() string

func (*KubernetesMetadata) GetUpdateTime

func (x *KubernetesMetadata) GetUpdateTime() *timestamppb.Timestamp

func (*KubernetesMetadata) GetVcpuCount

func (x *KubernetesMetadata) GetVcpuCount() int32

func (*KubernetesMetadata) ProtoMessage

func (*KubernetesMetadata) ProtoMessage()

func (*KubernetesMetadata) ProtoReflect

func (x *KubernetesMetadata) ProtoReflect() protoreflect.Message

func (*KubernetesMetadata) Reset

func (x *KubernetesMetadata) Reset()

func (*KubernetesMetadata) String

func (x *KubernetesMetadata) String() string

type KubernetesResource

type KubernetesResource struct {

	// 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 Create or Update, or leave this field empty if none exists. The CR
	// manifest is used to validate the cluster has not been registered with
	// another Membership.
	MembershipCrManifest string `protobuf:"bytes,1,opt,name=membership_cr_manifest,json=membershipCrManifest,proto3" json:"membership_cr_manifest,omitempty"`
	// 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.
	MembershipResources []*ResourceManifest `protobuf:"bytes,3,rep,name=membership_resources,json=membershipResources,proto3" json:"membership_resources,omitempty"`
	// 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.
	ConnectResources []*ResourceManifest `protobuf:"bytes,4,rep,name=connect_resources,json=connectResources,proto3" json:"connect_resources,omitempty"`
	// Optional. Options for Kubernetes resource generation.
	ResourceOptions *ResourceOptions `protobuf:"bytes,5,opt,name=resource_options,json=resourceOptions,proto3" json:"resource_options,omitempty"`
	// contains filtered or unexported fields
}

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.

func (*KubernetesResource) Descriptor deprecated

func (*KubernetesResource) Descriptor() ([]byte, []int)

Deprecated: Use KubernetesResource.ProtoReflect.Descriptor instead.

func (*KubernetesResource) GetConnectResources

func (x *KubernetesResource) GetConnectResources() []*ResourceManifest

func (*KubernetesResource) GetMembershipCrManifest

func (x *KubernetesResource) GetMembershipCrManifest() string

func (*KubernetesResource) GetMembershipResources

func (x *KubernetesResource) GetMembershipResources() []*ResourceManifest

func (*KubernetesResource) GetResourceOptions

func (x *KubernetesResource) GetResourceOptions() *ResourceOptions

func (*KubernetesResource) ProtoMessage

func (*KubernetesResource) ProtoMessage()

func (*KubernetesResource) ProtoReflect

func (x *KubernetesResource) ProtoReflect() protoreflect.Message

func (*KubernetesResource) Reset

func (x *KubernetesResource) Reset()

func (*KubernetesResource) String

func (x *KubernetesResource) String() string

type ListMembershipsRequest

type ListMembershipsRequest struct {

	// Required. The parent (project and location) where the Memberships will be listed.
	// Specified in the format `projects/*/locations/*`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// 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.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. Token returned by previous call to `ListMemberships` which
	// specifies the position in the list from where to continue listing the
	// resources.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// 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
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional. One or more fields to compare and use to sort the output.
	// See https://google.aip.dev/132#ordering.
	OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

Request message for `GkeHub.ListMemberships` method.

func (*ListMembershipsRequest) Descriptor deprecated

func (*ListMembershipsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListMembershipsRequest.ProtoReflect.Descriptor instead.

func (*ListMembershipsRequest) GetFilter

func (x *ListMembershipsRequest) GetFilter() string

func (*ListMembershipsRequest) GetOrderBy

func (x *ListMembershipsRequest) GetOrderBy() string

func (*ListMembershipsRequest) GetPageSize

func (x *ListMembershipsRequest) GetPageSize() int32

func (*ListMembershipsRequest) GetPageToken

func (x *ListMembershipsRequest) GetPageToken() string

func (*ListMembershipsRequest) GetParent

func (x *ListMembershipsRequest) GetParent() string

func (*ListMembershipsRequest) ProtoMessage

func (*ListMembershipsRequest) ProtoMessage()

func (*ListMembershipsRequest) ProtoReflect

func (x *ListMembershipsRequest) ProtoReflect() protoreflect.Message

func (*ListMembershipsRequest) Reset

func (x *ListMembershipsRequest) Reset()

func (*ListMembershipsRequest) String

func (x *ListMembershipsRequest) String() string

type ListMembershipsResponse

type ListMembershipsResponse struct {

	// The list of matching Memberships.
	Resources []*Membership `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
	// 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.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// List of locations that could not be reached while fetching this list.
	Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
	// contains filtered or unexported fields
}

Response message for the `GkeHub.ListMemberships` method.

func (*ListMembershipsResponse) Descriptor deprecated

func (*ListMembershipsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListMembershipsResponse.ProtoReflect.Descriptor instead.

func (*ListMembershipsResponse) GetNextPageToken

func (x *ListMembershipsResponse) GetNextPageToken() string

func (*ListMembershipsResponse) GetResources

func (x *ListMembershipsResponse) GetResources() []*Membership

func (*ListMembershipsResponse) GetUnreachable

func (x *ListMembershipsResponse) GetUnreachable() []string

func (*ListMembershipsResponse) ProtoMessage

func (*ListMembershipsResponse) ProtoMessage()

func (*ListMembershipsResponse) ProtoReflect

func (x *ListMembershipsResponse) ProtoReflect() protoreflect.Message

func (*ListMembershipsResponse) Reset

func (x *ListMembershipsResponse) Reset()

func (*ListMembershipsResponse) String

func (x *ListMembershipsResponse) String() string

type Membership

type Membership struct {

	// 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.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. GCP labels for this membership.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// 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.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Type of resource represented by this Membership
	//
	// Types that are assignable to Type:
	//	*Membership_Endpoint
	Type isMembership_Type `protobuf_oneof:"type"`
	// Output only. State of the Membership resource.
	State *MembershipState `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"`
	// Output only. When the Membership was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. When the Membership was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Output only. When the Membership was deleted.
	DeleteTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
	// 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.
	ExternalId string `protobuf:"bytes,9,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// 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
	Authority *Authority `protobuf:"bytes,10,opt,name=authority,proto3" json:"authority,omitempty"`
	// 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.
	LastConnectionTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=last_connection_time,json=lastConnectionTime,proto3" json:"last_connection_time,omitempty"`
	// 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.
	UniqueId string `protobuf:"bytes,12,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
	// Optional. The infrastructure type this Membership is running on.
	InfrastructureType Membership_InfrastructureType `` /* 181-byte string literal not displayed */
	// contains filtered or unexported fields
}

Membership contains information about a member cluster.

func (*Membership) Descriptor deprecated

func (*Membership) Descriptor() ([]byte, []int)

Deprecated: Use Membership.ProtoReflect.Descriptor instead.

func (*Membership) GetAuthority

func (x *Membership) GetAuthority() *Authority

func (*Membership) GetCreateTime

func (x *Membership) GetCreateTime() *timestamppb.Timestamp

func (*Membership) GetDeleteTime

func (x *Membership) GetDeleteTime() *timestamppb.Timestamp

func (*Membership) GetDescription

func (x *Membership) GetDescription() string

func (*Membership) GetEndpoint

func (x *Membership) GetEndpoint() *MembershipEndpoint

func (*Membership) GetExternalId

func (x *Membership) GetExternalId() string

func (*Membership) GetInfrastructureType

func (x *Membership) GetInfrastructureType() Membership_InfrastructureType

func (*Membership) GetLabels

func (x *Membership) GetLabels() map[string]string

func (*Membership) GetLastConnectionTime

func (x *Membership) GetLastConnectionTime() *timestamppb.Timestamp

func (*Membership) GetName

func (x *Membership) GetName() string

func (*Membership) GetState

func (x *Membership) GetState() *MembershipState

func (*Membership) GetType

func (m *Membership) GetType() isMembership_Type

func (*Membership) GetUniqueId

func (x *Membership) GetUniqueId() string

func (*Membership) GetUpdateTime

func (x *Membership) GetUpdateTime() *timestamppb.Timestamp

func (*Membership) ProtoMessage

func (*Membership) ProtoMessage()

func (*Membership) ProtoReflect

func (x *Membership) ProtoReflect() protoreflect.Message

func (*Membership) Reset

func (x *Membership) Reset()

func (*Membership) String

func (x *Membership) String() string

type MembershipEndpoint

type MembershipEndpoint struct {

	// Cluster information of the registered cluster.
	//
	// Types that are assignable to Type:
	//	*MembershipEndpoint_GkeCluster
	//	*MembershipEndpoint_OnPremCluster
	//	*MembershipEndpoint_MultiCloudCluster
	Type isMembershipEndpoint_Type `protobuf_oneof:"type"`
	// Output only. Useful Kubernetes-specific metadata.
	KubernetesMetadata *KubernetesMetadata `protobuf:"bytes,2,opt,name=kubernetes_metadata,json=kubernetesMetadata,proto3" json:"kubernetes_metadata,omitempty"`
	// 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.
	KubernetesResource *KubernetesResource `protobuf:"bytes,3,opt,name=kubernetes_resource,json=kubernetesResource,proto3" json:"kubernetes_resource,omitempty"`
	// contains filtered or unexported fields
}

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

func (*MembershipEndpoint) Descriptor deprecated

func (*MembershipEndpoint) Descriptor() ([]byte, []int)

Deprecated: Use MembershipEndpoint.ProtoReflect.Descriptor instead.

func (*MembershipEndpoint) GetGkeCluster

func (x *MembershipEndpoint) GetGkeCluster() *GkeCluster

func (*MembershipEndpoint) GetKubernetesMetadata

func (x *MembershipEndpoint) GetKubernetesMetadata() *KubernetesMetadata

func (*MembershipEndpoint) GetKubernetesResource

func (x *MembershipEndpoint) GetKubernetesResource() *KubernetesResource

func (*MembershipEndpoint) GetMultiCloudCluster

func (x *MembershipEndpoint) GetMultiCloudCluster() *MultiCloudCluster

func (*MembershipEndpoint) GetOnPremCluster

func (x *MembershipEndpoint) GetOnPremCluster() *OnPremCluster

func (*MembershipEndpoint) GetType

func (m *MembershipEndpoint) GetType() isMembershipEndpoint_Type

func (*MembershipEndpoint) ProtoMessage

func (*MembershipEndpoint) ProtoMessage()

func (*MembershipEndpoint) ProtoReflect

func (x *MembershipEndpoint) ProtoReflect() protoreflect.Message

func (*MembershipEndpoint) Reset

func (x *MembershipEndpoint) Reset()

func (*MembershipEndpoint) String

func (x *MembershipEndpoint) String() string

type MembershipEndpoint_GkeCluster

type MembershipEndpoint_GkeCluster struct {
	// Optional. Specific information for a GKE-on-GCP cluster.
	GkeCluster *GkeCluster `protobuf:"bytes,1,opt,name=gke_cluster,json=gkeCluster,proto3,oneof"`
}

type MembershipEndpoint_MultiCloudCluster

type MembershipEndpoint_MultiCloudCluster struct {
	// Optional. Specific information for a GKE Multi-Cloud cluster.
	MultiCloudCluster *MultiCloudCluster `protobuf:"bytes,5,opt,name=multi_cloud_cluster,json=multiCloudCluster,proto3,oneof"`
}

type MembershipEndpoint_OnPremCluster

type MembershipEndpoint_OnPremCluster struct {
	// Optional. Specific information for a GKE On-Prem cluster.
	OnPremCluster *OnPremCluster `protobuf:"bytes,4,opt,name=on_prem_cluster,json=onPremCluster,proto3,oneof"`
}

type MembershipState

type MembershipState struct {

	// Output only. The current state of the Membership resource.
	Code MembershipState_Code `protobuf:"varint,1,opt,name=code,proto3,enum=google.cloud.gkehub.v1alpha2.MembershipState_Code" json:"code,omitempty"`
	// contains filtered or unexported fields
}

MembershipState describes the state of a Membership resource.

func (*MembershipState) Descriptor deprecated

func (*MembershipState) Descriptor() ([]byte, []int)

Deprecated: Use MembershipState.ProtoReflect.Descriptor instead.

func (*MembershipState) GetCode

func (*MembershipState) ProtoMessage

func (*MembershipState) ProtoMessage()

func (*MembershipState) ProtoReflect

func (x *MembershipState) ProtoReflect() protoreflect.Message

func (*MembershipState) Reset

func (x *MembershipState) Reset()

func (*MembershipState) String

func (x *MembershipState) String() string

type MembershipState_Code

type MembershipState_Code int32

Code describes the state of a Membership resource.

const (
	// The code is not set.
	MembershipState_CODE_UNSPECIFIED MembershipState_Code = 0
	// The cluster is being registered.
	MembershipState_CREATING MembershipState_Code = 1
	// The cluster is registered.
	MembershipState_READY MembershipState_Code = 2
	// The cluster is being unregistered.
	MembershipState_DELETING MembershipState_Code = 3
	// The Membership is being updated.
	MembershipState_UPDATING MembershipState_Code = 4
	// The Membership is being updated by the Hub Service.
	MembershipState_SERVICE_UPDATING MembershipState_Code = 5
)

func (MembershipState_Code) Descriptor

func (MembershipState_Code) Enum

func (MembershipState_Code) EnumDescriptor deprecated

func (MembershipState_Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use MembershipState_Code.Descriptor instead.

func (MembershipState_Code) Number

func (MembershipState_Code) String

func (x MembershipState_Code) String() string

func (MembershipState_Code) Type

type Membership_Endpoint

type Membership_Endpoint struct {
	// Optional. Endpoint information to reach this member.
	Endpoint *MembershipEndpoint `protobuf:"bytes,4,opt,name=endpoint,proto3,oneof"`
}

type Membership_InfrastructureType

type Membership_InfrastructureType int32

Specifies the infrastructure type of a Membership. Infrastructure type is used by Hub to control infrastructure-specific behavior, including pricing.

Each GKE distribution (on-GCP, on-Prem, on-X,...) will set this field automatically, but Attached Clusters customers should specify a type during registration.

const (
	// No type was specified. Some Hub functionality may require a type be
	// specified, and will not support Memberships with this value.
	Membership_INFRASTRUCTURE_TYPE_UNSPECIFIED Membership_InfrastructureType = 0
	// Private infrastructure that is owned or operated by customer. This
	// includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal.
	Membership_ON_PREM Membership_InfrastructureType = 1
	// Public cloud infrastructure.
	Membership_MULTI_CLOUD Membership_InfrastructureType = 2
)

func (Membership_InfrastructureType) Descriptor

func (Membership_InfrastructureType) Enum

func (Membership_InfrastructureType) EnumDescriptor deprecated

func (Membership_InfrastructureType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Membership_InfrastructureType.Descriptor instead.

func (Membership_InfrastructureType) Number

func (Membership_InfrastructureType) String

func (Membership_InfrastructureType) Type

type MultiCloudCluster

type MultiCloudCluster struct {

	// Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
	// example:
	//
	//  //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/awsClusters/my-cluster
	//  //gkemulticloud.googleapis.com/projects/my-project/locations/us-west1-a/azureClusters/my-cluster
	ResourceLink string `protobuf:"bytes,1,opt,name=resource_link,json=resourceLink,proto3" json:"resource_link,omitempty"`
	// Output only. If cluster_missing is set then it denotes that
	// API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
	// no longer exists.
	ClusterMissing bool `protobuf:"varint,2,opt,name=cluster_missing,json=clusterMissing,proto3" json:"cluster_missing,omitempty"`
	// contains filtered or unexported fields
}

MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.

func (*MultiCloudCluster) Descriptor deprecated

func (*MultiCloudCluster) Descriptor() ([]byte, []int)

Deprecated: Use MultiCloudCluster.ProtoReflect.Descriptor instead.

func (*MultiCloudCluster) GetClusterMissing

func (x *MultiCloudCluster) GetClusterMissing() bool
func (x *MultiCloudCluster) GetResourceLink() string

func (*MultiCloudCluster) ProtoMessage

func (*MultiCloudCluster) ProtoMessage()

func (*MultiCloudCluster) ProtoReflect

func (x *MultiCloudCluster) ProtoReflect() protoreflect.Message

func (*MultiCloudCluster) Reset

func (x *MultiCloudCluster) Reset()

func (*MultiCloudCluster) String

func (x *MultiCloudCluster) String() string

type OnPremCluster

type OnPremCluster struct {

	// Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
	//
	//  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
	//  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
	ResourceLink string `protobuf:"bytes,1,opt,name=resource_link,json=resourceLink,proto3" json:"resource_link,omitempty"`
	// Output only. If cluster_missing is set then it denotes that
	// API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
	// longer exists.
	ClusterMissing bool `protobuf:"varint,2,opt,name=cluster_missing,json=clusterMissing,proto3" json:"cluster_missing,omitempty"`
	// Immutable. Whether the cluster is an admin cluster.
	AdminCluster bool `protobuf:"varint,3,opt,name=admin_cluster,json=adminCluster,proto3" json:"admin_cluster,omitempty"`
	// contains filtered or unexported fields
}

OnPremCluster contains information specific to GKE On-Prem clusters.

func (*OnPremCluster) Descriptor deprecated

func (*OnPremCluster) Descriptor() ([]byte, []int)

Deprecated: Use OnPremCluster.ProtoReflect.Descriptor instead.

func (*OnPremCluster) GetAdminCluster

func (x *OnPremCluster) GetAdminCluster() bool

func (*OnPremCluster) GetClusterMissing

func (x *OnPremCluster) GetClusterMissing() bool
func (x *OnPremCluster) GetResourceLink() string

func (*OnPremCluster) ProtoMessage

func (*OnPremCluster) ProtoMessage()

func (*OnPremCluster) ProtoReflect

func (x *OnPremCluster) ProtoReflect() protoreflect.Message

func (*OnPremCluster) Reset

func (x *OnPremCluster) Reset()

func (*OnPremCluster) String

func (x *OnPremCluster) String() string

type OperationMetadata

type OperationMetadata struct {

	// Output only. The time the operation was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time the operation finished running.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Output only. Server-defined resource path for the target of the operation.
	Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
	// Output only. Name of the verb executed by the operation.
	Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
	// Output only. Human-readable status of the operation, if any.
	StatusDetail string `protobuf:"bytes,5,opt,name=status_detail,json=statusDetail,proto3" json:"status_detail,omitempty"`
	// 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`.
	CancelRequested bool `protobuf:"varint,6,opt,name=cancel_requested,json=cancelRequested,proto3" json:"cancel_requested,omitempty"`
	// Output only. API version used to start the operation.
	ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	// contains filtered or unexported fields
}

Represents the metadata of the long-running operation.

func (*OperationMetadata) Descriptor deprecated

func (*OperationMetadata) Descriptor() ([]byte, []int)

Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.

func (*OperationMetadata) GetApiVersion

func (x *OperationMetadata) GetApiVersion() string

func (*OperationMetadata) GetCancelRequested

func (x *OperationMetadata) GetCancelRequested() bool

func (*OperationMetadata) GetCreateTime

func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp

func (*OperationMetadata) GetEndTime

func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp

func (*OperationMetadata) GetStatusDetail

func (x *OperationMetadata) GetStatusDetail() string

func (*OperationMetadata) GetTarget

func (x *OperationMetadata) GetTarget() string

func (*OperationMetadata) GetVerb

func (x *OperationMetadata) GetVerb() string

func (*OperationMetadata) ProtoMessage

func (*OperationMetadata) ProtoMessage()

func (*OperationMetadata) ProtoReflect

func (x *OperationMetadata) ProtoReflect() protoreflect.Message

func (*OperationMetadata) Reset

func (x *OperationMetadata) Reset()

func (*OperationMetadata) String

func (x *OperationMetadata) String() string

type ResourceManifest

type ResourceManifest struct {

	// YAML manifest of the resource.
	Manifest string `protobuf:"bytes,1,opt,name=manifest,proto3" json:"manifest,omitempty"`
	// 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.
	ClusterScoped bool `protobuf:"varint,2,opt,name=cluster_scoped,json=clusterScoped,proto3" json:"cluster_scoped,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ResourceManifest) Descriptor deprecated

func (*ResourceManifest) Descriptor() ([]byte, []int)

Deprecated: Use ResourceManifest.ProtoReflect.Descriptor instead.

func (*ResourceManifest) GetClusterScoped

func (x *ResourceManifest) GetClusterScoped() bool

func (*ResourceManifest) GetManifest

func (x *ResourceManifest) GetManifest() string

func (*ResourceManifest) ProtoMessage

func (*ResourceManifest) ProtoMessage()

func (*ResourceManifest) ProtoReflect

func (x *ResourceManifest) ProtoReflect() protoreflect.Message

func (*ResourceManifest) Reset

func (x *ResourceManifest) Reset()

func (*ResourceManifest) String

func (x *ResourceManifest) String() string

type ResourceOptions

type ResourceOptions struct {

	// 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.
	ConnectVersion string `protobuf:"bytes,1,opt,name=connect_version,json=connectVersion,proto3" json:"connect_version,omitempty"`
	// Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
	// CustomResourceDefinition resources.
	// This option should be set for clusters with Kubernetes apiserver versions
	// <1.16.
	V1Beta1Crd bool `protobuf:"varint,2,opt,name=v1beta1_crd,json=v1beta1Crd,proto3" json:"v1beta1_crd,omitempty"`
	// Major version of the Kubernetes cluster. This is only used to determine
	// which version to use for the CustomResourceDefinition resources,
	// `apiextensions/v1beta1` or`apiextensions/v1`.
	K8SVersion string `protobuf:"bytes,3,opt,name=k8s_version,json=k8sVersion,proto3" json:"k8s_version,omitempty"`
	// contains filtered or unexported fields
}

ResourceOptions represent options for Kubernetes resource generation.

func (*ResourceOptions) Descriptor deprecated

func (*ResourceOptions) Descriptor() ([]byte, []int)

Deprecated: Use ResourceOptions.ProtoReflect.Descriptor instead.

func (*ResourceOptions) GetConnectVersion

func (x *ResourceOptions) GetConnectVersion() string

func (*ResourceOptions) GetK8SVersion

func (x *ResourceOptions) GetK8SVersion() string

func (*ResourceOptions) GetV1Beta1Crd

func (x *ResourceOptions) GetV1Beta1Crd() bool

func (*ResourceOptions) ProtoMessage

func (*ResourceOptions) ProtoMessage()

func (*ResourceOptions) ProtoReflect

func (x *ResourceOptions) ProtoReflect() protoreflect.Message

func (*ResourceOptions) Reset

func (x *ResourceOptions) Reset()

func (*ResourceOptions) String

func (x *ResourceOptions) String() string

type TypeMeta

type TypeMeta struct {

	// Kind of the resource (e.g. Deployment).
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// APIVersion of the resource (e.g. v1).
	ApiVersion string `protobuf:"bytes,2,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	// contains filtered or unexported fields
}

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

func (*TypeMeta) Descriptor deprecated

func (*TypeMeta) Descriptor() ([]byte, []int)

Deprecated: Use TypeMeta.ProtoReflect.Descriptor instead.

func (*TypeMeta) GetApiVersion

func (x *TypeMeta) GetApiVersion() string

func (*TypeMeta) GetKind

func (x *TypeMeta) GetKind() string

func (*TypeMeta) ProtoMessage

func (*TypeMeta) ProtoMessage()

func (*TypeMeta) ProtoReflect

func (x *TypeMeta) ProtoReflect() protoreflect.Message

func (*TypeMeta) Reset

func (x *TypeMeta) Reset()

func (*TypeMeta) String

func (x *TypeMeta) String() string

type UnimplementedGkeHubServer

type UnimplementedGkeHubServer struct {
}

UnimplementedGkeHubServer can be embedded to have forward compatible implementations.

func (*UnimplementedGkeHubServer) CreateMembership

func (*UnimplementedGkeHubServer) DeleteMembership

func (*UnimplementedGkeHubServer) GetMembership

func (*UnimplementedGkeHubServer) InitializeHub

func (*UnimplementedGkeHubServer) ListMemberships

func (*UnimplementedGkeHubServer) UpdateMembership

type UpdateMembershipRequest

type UpdateMembershipRequest struct {

	// Required. The Membership resource name in the format
	// `projects/*/locations/*/memberships/*`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. Mask of fields to update.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// 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`.
	Resource *Membership `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

Request message for `GkeHub.UpdateMembership` method.

func (*UpdateMembershipRequest) Descriptor deprecated

func (*UpdateMembershipRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMembershipRequest.ProtoReflect.Descriptor instead.

func (*UpdateMembershipRequest) GetName

func (x *UpdateMembershipRequest) GetName() string

func (*UpdateMembershipRequest) GetResource

func (x *UpdateMembershipRequest) GetResource() *Membership

func (*UpdateMembershipRequest) GetUpdateMask

func (x *UpdateMembershipRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateMembershipRequest) ProtoMessage

func (*UpdateMembershipRequest) ProtoMessage()

func (*UpdateMembershipRequest) ProtoReflect

func (x *UpdateMembershipRequest) ProtoReflect() protoreflect.Message

func (*UpdateMembershipRequest) Reset

func (x *UpdateMembershipRequest) Reset()

func (*UpdateMembershipRequest) String

func (x *UpdateMembershipRequest) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL