Movatterモバイル変換


[0]ホーム

URL:


gkehub

package
v0.257.0Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:18Imported by:0

Details

Repository

github.com/googleapis/google-api-go-client

Links

Documentation

Overview

Package gkehub provides access to the GKE Hub API.

For product documentation, see:https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster

Library status

These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.

When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/gkehub/v2alpha"...ctx := context.Background()gkehubService, err := gkehub.NewService(ctx)

In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:

gkehubService, err := gkehub.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)gkehubService, err := gkehub.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seegoogle.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

typeAppDevExperienceStateadded inv0.201.0

type AppDevExperienceState struct {// NetworkingInstallSucceeded: Status of subcomponent that detects configured// Service Mesh resources.NetworkingInstallSucceeded *AppDevExperienceStatus `json:"networkingInstallSucceeded,omitempty"`// ForceSendFields is a list of field names (e.g. "NetworkingInstallSucceeded")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NetworkingInstallSucceeded") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AppDevExperienceState: State for App Dev Exp Feature.

func (AppDevExperienceState)MarshalJSONadded inv0.201.0

func (sAppDevExperienceState) MarshalJSON() ([]byte,error)

typeAppDevExperienceStatusadded inv0.201.0

type AppDevExperienceStatus struct {// Code: Code specifies AppDevExperienceFeature's subcomponent ready state.//// Possible values://   "CODE_UNSPECIFIED" - Not set.//   "OK" - AppDevExperienceFeature's specified subcomponent is ready.//   "FAILED" - AppDevExperienceFeature's specified subcomponent ready state is// false. This means AppDevExperienceFeature has encountered an issue that// blocks all, or a portion, of its normal operation. See the `description` for// more details.//   "UNKNOWN" - AppDevExperienceFeature's specified subcomponent has a pending// or unknown state.Codestring `json:"code,omitempty"`// Description: Description is populated if Code is Failed, explaining why it// has failed.Descriptionstring `json:"description,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AppDevExperienceStatus: Status specifies state for the subcomponent.

func (AppDevExperienceStatus)MarshalJSONadded inv0.201.0

func (sAppDevExperienceStatus) MarshalJSON() ([]byte,error)

typeCancelOperationRequest

type CancelOperationRequest struct {}

CancelOperationRequest: The request message for Operations.CancelOperation.

typeCloudBuildSpecadded inv0.201.0

type CloudBuildSpec struct {// SecurityPolicy: Whether it is allowed to run the privileged builds on the// cluster or not.//// Possible values://   "SECURITY_POLICY_UNSPECIFIED" - Unspecified policy//   "NON_PRIVILEGED" - Privileged build pods are disallowed//   "PRIVILEGED" - Privileged build pods are allowedSecurityPolicystring `json:"securityPolicy,omitempty"`// Version: Version of the cloud build software on the cluster.Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "SecurityPolicy") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SecurityPolicy") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CloudBuildSpec: **Cloud Build**: Configurations for each Cloud Build enabledcluster.

func (CloudBuildSpec)MarshalJSONadded inv0.201.0

func (sCloudBuildSpec) MarshalJSON() ([]byte,error)

typeClusterUpgradeGKEUpgradeadded inv0.201.0

type ClusterUpgradeGKEUpgrade struct {// Name: Name of the upgrade, e.g., "k8s_control_plane".Namestring `json:"name,omitempty"`// Version: Version of the upgrade, e.g., "1.22.1-gke.100".Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ClusterUpgradeGKEUpgrade: GKEUpgrade represents a GKE provided upgrade,e.g., control plane upgrade.

func (ClusterUpgradeGKEUpgrade)MarshalJSONadded inv0.201.0

func (sClusterUpgradeGKEUpgrade) MarshalJSON() ([]byte,error)

typeClusterUpgradeIgnoredMembershipadded inv0.201.0

type ClusterUpgradeIgnoredMembership struct {// IgnoredTime: Time when the membership was first set to ignored.IgnoredTimestring `json:"ignoredTime,omitempty"`// Reason: Reason why the membership is ignored.Reasonstring `json:"reason,omitempty"`// ForceSendFields is a list of field names (e.g. "IgnoredTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IgnoredTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ClusterUpgradeIgnoredMembership: IgnoredMembership represents a membershipignored by the feature. A membership can be ignored because it was manuallyupgraded to a newer version than RC default.

func (ClusterUpgradeIgnoredMembership)MarshalJSONadded inv0.201.0

func (sClusterUpgradeIgnoredMembership) MarshalJSON() ([]byte,error)

typeClusterUpgradeMembershipGKEUpgradeStateadded inv0.201.0

type ClusterUpgradeMembershipGKEUpgradeState struct {// Status: Status of the upgrade.Status *ClusterUpgradeUpgradeStatus `json:"status,omitempty"`// Upgrade: Which upgrade to track the state.Upgrade *ClusterUpgradeGKEUpgrade `json:"upgrade,omitempty"`// ForceSendFields is a list of field names (e.g. "Status") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Status") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ClusterUpgradeMembershipGKEUpgradeState: MembershipGKEUpgradeState is aGKEUpgrade and its state per-membership.

func (ClusterUpgradeMembershipGKEUpgradeState)MarshalJSONadded inv0.201.0

typeClusterUpgradeStateadded inv0.201.0

type ClusterUpgradeState struct {// Ignored: Whether this membership is ignored by the feature. For example,// manually upgraded clusters can be ignored if they are newer than the default// versions of its release channel.Ignored *ClusterUpgradeIgnoredMembership `json:"ignored,omitempty"`// Upgrades: Actual upgrade state against desired.Upgrades []*ClusterUpgradeMembershipGKEUpgradeState `json:"upgrades,omitempty"`// ForceSendFields is a list of field names (e.g. "Ignored") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Ignored") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ClusterUpgradeState: Per-membership state for this feature.

func (ClusterUpgradeState)MarshalJSONadded inv0.201.0

func (sClusterUpgradeState) MarshalJSON() ([]byte,error)

typeClusterUpgradeUpgradeStatusadded inv0.201.0

type ClusterUpgradeUpgradeStatus struct {// Code: Status code of the upgrade.//// Possible values://   "CODE_UNSPECIFIED" - Required byhttps://linter.aip.dev/126/unspecified.//   "INELIGIBLE" - The upgrade is ineligible. At the scope level, this means// the upgrade is ineligible for all the clusters in the scope.//   "PENDING" - The upgrade is pending. At the scope level, this means the// upgrade is pending for all the clusters in the scope.//   "IN_PROGRESS" - The upgrade is in progress. At the scope level, this means// the upgrade is in progress for at least one cluster in the scope.//   "SOAKING" - The upgrade has finished and is soaking until the soaking time// is up. At the scope level, this means at least one cluster is in soaking// while the rest are either soaking or complete.//   "FORCED_SOAKING" - A cluster will be forced to enter soaking if an upgrade// doesn't finish within a certain limit, despite it's actual status.//   "COMPLETE" - The upgrade has passed all post conditions (soaking). At the// scope level, this means all eligible clusters are in COMPLETE status.Codestring `json:"code,omitempty"`// Reason: Reason for this status.Reasonstring `json:"reason,omitempty"`// UpdateTime: Last timestamp the status was updated.UpdateTimestring `json:"updateTime,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ClusterUpgradeUpgradeStatus: UpgradeStatus provides status information foreach upgrade.

func (ClusterUpgradeUpgradeStatus)MarshalJSONadded inv0.201.0

func (sClusterUpgradeUpgradeStatus) MarshalJSON() ([]byte,error)

typeConfigManagementBinauthzConfigadded inv0.201.0

type ConfigManagementBinauthzConfig struct {// Enabled: Whether binauthz is enabled in this cluster.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementBinauthzConfig: Configuration for Binauthz.

func (ConfigManagementBinauthzConfig)MarshalJSONadded inv0.201.0

func (sConfigManagementBinauthzConfig) MarshalJSON() ([]byte,error)

typeConfigManagementBinauthzStateadded inv0.201.0

type ConfigManagementBinauthzState struct {// Version: The version of binauthz that is installed.Version *ConfigManagementBinauthzVersion `json:"version,omitempty"`// Webhook: The state of the binauthz webhook.//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingWebhookstring `json:"webhook,omitempty"`// ForceSendFields is a list of field names (e.g. "Version") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Version") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementBinauthzState: State for Binauthz.

func (ConfigManagementBinauthzState)MarshalJSONadded inv0.201.0

func (sConfigManagementBinauthzState) MarshalJSON() ([]byte,error)

typeConfigManagementBinauthzVersionadded inv0.201.0

type ConfigManagementBinauthzVersion struct {// WebhookVersion: The version of the binauthz webhook.WebhookVersionstring `json:"webhookVersion,omitempty"`// ForceSendFields is a list of field names (e.g. "WebhookVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "WebhookVersion") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementBinauthzVersion: The version of binauthz.

func (ConfigManagementBinauthzVersion)MarshalJSONadded inv0.201.0

func (sConfigManagementBinauthzVersion) MarshalJSON() ([]byte,error)

typeConfigManagementConfigSyncadded inv0.201.0

type ConfigManagementConfigSync struct {// DeploymentOverrides: Optional. Configuration for deployment overrides.DeploymentOverrides []*ConfigManagementDeploymentOverride `json:"deploymentOverrides,omitempty"`// Enabled: Optional. Enables the installation of ConfigSync. If set to true,// ConfigSync resources will be created and the other ConfigSync fields will be// applied if exist. If set to false, all other ConfigSync fields will be// ignored, ConfigSync resources will be deleted. If omitted, ConfigSync// resources will be managed depends on the presence of the git or oci field.Enabledbool `json:"enabled,omitempty"`// Git: Optional. Git repo configuration for the cluster.Git *ConfigManagementGitConfig `json:"git,omitempty"`// MetricsGcpServiceAccountEmail: Optional. The Email of the Google Cloud// Service Account (GSA) used for exporting Config Sync metrics to Cloud// Monitoring and Cloud Monarch when Workload Identity is enabled. The GSA// should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM// role. The Kubernetes ServiceAccount `default` in the namespace// `config-management-monitoring` should be bound to the GSA. Deprecated: If// Workload Identity Federation for GKE is enabled, Google Cloud Service// Account is no longer needed for exporting Config Sync metrics://https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/how-to/monitor-config-sync-cloud-monitoring#custom-monitoring.MetricsGcpServiceAccountEmailstring `json:"metricsGcpServiceAccountEmail,omitempty"`// Oci: Optional. OCI repo configuration for the cluster.Oci *ConfigManagementOciConfig `json:"oci,omitempty"`// PreventDrift: Optional. Set to true to enable the Config Sync admission// webhook to prevent drifts. If set to `false`, disables the Config Sync// admission webhook and does not prevent drifts.PreventDriftbool `json:"preventDrift,omitempty"`// SourceFormat: Optional. Specifies whether the Config Sync Repo is in// "hierarchical" or "unstructured" mode.SourceFormatstring `json:"sourceFormat,omitempty"`// StopSyncing: Optional. Set to true to stop syncing configs for a single// cluster. Default to false.StopSyncingbool `json:"stopSyncing,omitempty"`// ForceSendFields is a list of field names (e.g. "DeploymentOverrides") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeploymentOverrides") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementConfigSync: Configuration for Config Sync

func (ConfigManagementConfigSync)MarshalJSONadded inv0.201.0

func (sConfigManagementConfigSync) MarshalJSON() ([]byte,error)

typeConfigManagementConfigSyncDeploymentStateadded inv0.201.0

type ConfigManagementConfigSyncDeploymentState struct {// AdmissionWebhook: Deployment state of admission-webhook.//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingAdmissionWebhookstring `json:"admissionWebhook,omitempty"`// GitSync: Deployment state of the git-sync pod.//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingGitSyncstring `json:"gitSync,omitempty"`// Importer: Deployment state of the importer pod.//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingImporterstring `json:"importer,omitempty"`// Monitor: Deployment state of the monitor pod.//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingMonitorstring `json:"monitor,omitempty"`// OtelCollector: Deployment state of otel-collector//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingOtelCollectorstring `json:"otelCollector,omitempty"`// ReconcilerManager: Deployment state of reconciler-manager pod.//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingReconcilerManagerstring `json:"reconcilerManager,omitempty"`// ResourceGroupControllerManager: Deployment state of// resource-group-controller-manager//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingResourceGroupControllerManagerstring `json:"resourceGroupControllerManager,omitempty"`// RootReconciler: Deployment state of root-reconciler.//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingRootReconcilerstring `json:"rootReconciler,omitempty"`// Syncer: Deployment state of the syncer pod.//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingSyncerstring `json:"syncer,omitempty"`// ForceSendFields is a list of field names (e.g. "AdmissionWebhook") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdmissionWebhook") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementConfigSyncDeploymentState: The state of ConfigSync'sdeployment on a cluster.

func (ConfigManagementConfigSyncDeploymentState)MarshalJSONadded inv0.201.0

typeConfigManagementConfigSyncErroradded inv0.201.0

type ConfigManagementConfigSyncError struct {// ErrorMessage: A string representing the user facing error messageErrorMessagestring `json:"errorMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "ErrorMessage") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ErrorMessage") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementConfigSyncError: Errors pertaining to the installation ofConfig Sync

func (ConfigManagementConfigSyncError)MarshalJSONadded inv0.201.0

func (sConfigManagementConfigSyncError) MarshalJSON() ([]byte,error)

typeConfigManagementConfigSyncStateadded inv0.201.0

type ConfigManagementConfigSyncState struct {// ClusterLevelStopSyncingState: Output only. Whether syncing resources to the// cluster is stopped at the cluster level.//// Possible values://   "STOP_SYNCING_STATE_UNSPECIFIED" - State cannot be determined//   "NOT_STOPPED" - Syncing resources to the cluster is not stopped at the// cluster level.//   "PENDING" - Some reconcilers stop syncing resources to the cluster, while// others are still syncing.//   "STOPPED" - Syncing resources to the cluster is stopped at the cluster// level.ClusterLevelStopSyncingStatestring `json:"clusterLevelStopSyncingState,omitempty"`// CrCount: Output only. The number of RootSync and RepoSync CRs in the// cluster.CrCountint64 `json:"crCount,omitempty"`// DeploymentState: Output only. Information about the deployment of// ConfigSync, including the version. of the various Pods deployedDeploymentState *ConfigManagementConfigSyncDeploymentState `json:"deploymentState,omitempty"`// Errors: Output only. Errors pertaining to the installation of Config Sync.Errors []*ConfigManagementConfigSyncError `json:"errors,omitempty"`// ReposyncCrd: Output only. The state of the Reposync CRD//// Possible values://   "CRD_STATE_UNSPECIFIED" - CRD's state cannot be determined//   "NOT_INSTALLED" - CRD is not installed//   "INSTALLED" - CRD is installed//   "TERMINATING" - CRD is terminating (i.e., it has been deleted and is// cleaning up)//   "INSTALLING" - CRD is installingReposyncCrdstring `json:"reposyncCrd,omitempty"`// RootsyncCrd: Output only. The state of the RootSync CRD//// Possible values://   "CRD_STATE_UNSPECIFIED" - CRD's state cannot be determined//   "NOT_INSTALLED" - CRD is not installed//   "INSTALLED" - CRD is installed//   "TERMINATING" - CRD is terminating (i.e., it has been deleted and is// cleaning up)//   "INSTALLING" - CRD is installingRootsyncCrdstring `json:"rootsyncCrd,omitempty"`// State: Output only. The state of CS This field summarizes the other fields// in this message.//// Possible values://   "STATE_UNSPECIFIED" - CS's state cannot be determined.//   "CONFIG_SYNC_NOT_INSTALLED" - CS is not installed.//   "CONFIG_SYNC_INSTALLED" - The expected CS version is installed// successfully.//   "CONFIG_SYNC_ERROR" - CS encounters errors.//   "CONFIG_SYNC_PENDING" - CS is installing or terminating.Statestring `json:"state,omitempty"`// SyncState: Output only. The state of ConfigSync's process to sync configs to// a cluster.SyncState *ConfigManagementSyncState `json:"syncState,omitempty"`// Version: Output only. The version of ConfigSync deployed.Version *ConfigManagementConfigSyncVersion `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g.// "ClusterLevelStopSyncingState") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClusterLevelStopSyncingState") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementConfigSyncState: State information for ConfigSync.

func (ConfigManagementConfigSyncState)MarshalJSONadded inv0.201.0

func (sConfigManagementConfigSyncState) MarshalJSON() ([]byte,error)

typeConfigManagementConfigSyncVersionadded inv0.201.0

type ConfigManagementConfigSyncVersion struct {// AdmissionWebhook: Version of the deployed admission-webhook pod.AdmissionWebhookstring `json:"admissionWebhook,omitempty"`// GitSync: Version of the deployed git-sync pod.GitSyncstring `json:"gitSync,omitempty"`// Importer: Version of the deployed importer pod.Importerstring `json:"importer,omitempty"`// Monitor: Version of the deployed monitor pod.Monitorstring `json:"monitor,omitempty"`// OtelCollector: Version of the deployed otel-collector podOtelCollectorstring `json:"otelCollector,omitempty"`// ReconcilerManager: Version of the deployed reconciler-manager pod.ReconcilerManagerstring `json:"reconcilerManager,omitempty"`// ResourceGroupControllerManager: Version of the deployed// resource-group-controller-manager podResourceGroupControllerManagerstring `json:"resourceGroupControllerManager,omitempty"`// RootReconciler: Version of the deployed reconciler container in// root-reconciler pod.RootReconcilerstring `json:"rootReconciler,omitempty"`// Syncer: Version of the deployed syncer pod.Syncerstring `json:"syncer,omitempty"`// ForceSendFields is a list of field names (e.g. "AdmissionWebhook") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdmissionWebhook") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementConfigSyncVersion: Specific versioning informationpertaining to ConfigSync's Pods.

func (ConfigManagementConfigSyncVersion)MarshalJSONadded inv0.201.0

func (sConfigManagementConfigSyncVersion) MarshalJSON() ([]byte,error)

typeConfigManagementContainerOverrideadded inv0.225.0

type ConfigManagementContainerOverride struct {// ContainerName: Required. The name of the container.ContainerNamestring `json:"containerName,omitempty"`// CpuLimit: Optional. The cpu limit of the container.CpuLimitstring `json:"cpuLimit,omitempty"`// CpuRequest: Optional. The cpu request of the container.CpuRequeststring `json:"cpuRequest,omitempty"`// MemoryLimit: Optional. The memory limit of the container.MemoryLimitstring `json:"memoryLimit,omitempty"`// MemoryRequest: Optional. The memory request of the container.MemoryRequeststring `json:"memoryRequest,omitempty"`// ForceSendFields is a list of field names (e.g. "ContainerName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContainerName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementContainerOverride: Configuration for a container override.

func (ConfigManagementContainerOverride)MarshalJSONadded inv0.225.0

func (sConfigManagementContainerOverride) MarshalJSON() ([]byte,error)

typeConfigManagementDeploymentOverrideadded inv0.225.0

type ConfigManagementDeploymentOverride struct {// Containers: Optional. The containers of the deployment resource to be// overridden.Containers []*ConfigManagementContainerOverride `json:"containers,omitempty"`// DeploymentName: Required. The name of the deployment resource to be// overridden.DeploymentNamestring `json:"deploymentName,omitempty"`// DeploymentNamespace: Required. The namespace of the deployment resource to// be overridden.DeploymentNamespacestring `json:"deploymentNamespace,omitempty"`// ForceSendFields is a list of field names (e.g. "Containers") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Containers") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementDeploymentOverride: Configuration for a deployment override.

func (ConfigManagementDeploymentOverride)MarshalJSONadded inv0.225.0

typeConfigManagementErrorResourceadded inv0.201.0

type ConfigManagementErrorResource struct {// ResourceGvk: Group/version/kind of the resource that is causing an errorResourceGvk *ConfigManagementGroupVersionKind `json:"resourceGvk,omitempty"`// ResourceName: Metadata name of the resource that is causing an errorResourceNamestring `json:"resourceName,omitempty"`// ResourceNamespace: Namespace of the resource that is causing an errorResourceNamespacestring `json:"resourceNamespace,omitempty"`// SourcePath: Path in the git repo of the erroneous configSourcePathstring `json:"sourcePath,omitempty"`// ForceSendFields is a list of field names (e.g. "ResourceGvk") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResourceGvk") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementErrorResource: Model for a config file in the git repo withan associated Sync error.

func (ConfigManagementErrorResource)MarshalJSONadded inv0.201.0

func (sConfigManagementErrorResource) MarshalJSON() ([]byte,error)

typeConfigManagementGatekeeperDeploymentStateadded inv0.201.0

type ConfigManagementGatekeeperDeploymentState struct {// GatekeeperAudit: Status of gatekeeper-audit deployment.//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingGatekeeperAuditstring `json:"gatekeeperAudit,omitempty"`// GatekeeperControllerManagerState: Status of gatekeeper-controller-manager// pod.//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingGatekeeperControllerManagerStatestring `json:"gatekeeperControllerManagerState,omitempty"`// GatekeeperMutation: Status of the pod serving the mutation webhook.//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingGatekeeperMutationstring `json:"gatekeeperMutation,omitempty"`// ForceSendFields is a list of field names (e.g. "GatekeeperAudit") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GatekeeperAudit") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementGatekeeperDeploymentState: State of Policy Controllerinstallation.

func (ConfigManagementGatekeeperDeploymentState)MarshalJSONadded inv0.201.0

typeConfigManagementGitConfigadded inv0.201.0

type ConfigManagementGitConfig struct {// GcpServiceAccountEmail: Optional. The Google Cloud Service Account Email// used for auth when secret_type is gcpServiceAccount.GcpServiceAccountEmailstring `json:"gcpServiceAccountEmail,omitempty"`// HttpsProxy: Optional. URL for the HTTPS proxy to be used when communicating// with the Git repo.HttpsProxystring `json:"httpsProxy,omitempty"`// PolicyDir: Optional. The path within the Git repository that represents the// top level of the repo to sync. Default: the root directory of the// repository.PolicyDirstring `json:"policyDir,omitempty"`// SecretType: Required. Type of secret configured for access to the Git repo.// Must be one of ssh, cookiefile, gcenode, token, gcpserviceaccount, githubapp// or none. The validation of this is case-sensitive.SecretTypestring `json:"secretType,omitempty"`// SyncBranch: Optional. The branch of the repository to sync from. Default:// master.SyncBranchstring `json:"syncBranch,omitempty"`// SyncRepo: Required. The URL of the Git repository to use as the source of// truth.SyncRepostring `json:"syncRepo,omitempty"`// SyncRev: Optional. Git revision (tag or hash) to check out. Default HEAD.SyncRevstring `json:"syncRev,omitempty"`// SyncWaitSecs: Optional. Period in seconds between consecutive syncs.// Default: 15.SyncWaitSecsint64 `json:"syncWaitSecs,omitempty,string"`// ForceSendFields is a list of field names (e.g. "GcpServiceAccountEmail") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GcpServiceAccountEmail") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementGitConfig: Git repo configuration for a single cluster.

func (ConfigManagementGitConfig)MarshalJSONadded inv0.201.0

func (sConfigManagementGitConfig) MarshalJSON() ([]byte,error)

typeConfigManagementGroupVersionKindadded inv0.201.0

type ConfigManagementGroupVersionKind struct {// Group: Kubernetes GroupGroupstring `json:"group,omitempty"`// Kind: Kubernetes KindKindstring `json:"kind,omitempty"`// Version: Kubernetes VersionVersionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "Group") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Group") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementGroupVersionKind: A Kubernetes object's GVK.

func (ConfigManagementGroupVersionKind)MarshalJSONadded inv0.201.0

func (sConfigManagementGroupVersionKind) MarshalJSON() ([]byte,error)

typeConfigManagementHierarchyControllerConfigadded inv0.201.0

type ConfigManagementHierarchyControllerConfig struct {// EnableHierarchicalResourceQuota: Whether hierarchical resource quota is// enabled in this cluster.EnableHierarchicalResourceQuotabool `json:"enableHierarchicalResourceQuota,omitempty"`// EnablePodTreeLabels: Whether pod tree labels are enabled in this cluster.EnablePodTreeLabelsbool `json:"enablePodTreeLabels,omitempty"`// Enabled: Whether Hierarchy Controller is enabled in this cluster.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g.// "EnableHierarchicalResourceQuota") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnableHierarchicalResourceQuota")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementHierarchyControllerConfig: Configuration for HierarchyController.

func (ConfigManagementHierarchyControllerConfig)MarshalJSONadded inv0.201.0

typeConfigManagementHierarchyControllerDeploymentStateadded inv0.201.0

type ConfigManagementHierarchyControllerDeploymentState struct {// Extension: The deployment state for Hierarchy Controller extension (e.g.// v0.7.0-hc.1).//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingExtensionstring `json:"extension,omitempty"`// Hnc: The deployment state for open source HNC (e.g. v0.7.0-hc.0).//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingHncstring `json:"hnc,omitempty"`// ForceSendFields is a list of field names (e.g. "Extension") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Extension") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementHierarchyControllerDeploymentState: Deployment state forHierarchy Controller

func (ConfigManagementHierarchyControllerDeploymentState)MarshalJSONadded inv0.201.0

typeConfigManagementHierarchyControllerStateadded inv0.201.0

type ConfigManagementHierarchyControllerState struct {// State: The deployment state for Hierarchy Controller.State *ConfigManagementHierarchyControllerDeploymentState `json:"state,omitempty"`// Version: The version for Hierarchy Controller.Version *ConfigManagementHierarchyControllerVersion `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "State") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "State") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementHierarchyControllerState: State for Hierarchy Controller.

func (ConfigManagementHierarchyControllerState)MarshalJSONadded inv0.201.0

typeConfigManagementHierarchyControllerVersionadded inv0.201.0

type ConfigManagementHierarchyControllerVersion struct {// Extension: Version for Hierarchy Controller extension.Extensionstring `json:"extension,omitempty"`// Hnc: Version for open source HNC.Hncstring `json:"hnc,omitempty"`// ForceSendFields is a list of field names (e.g. "Extension") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Extension") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementHierarchyControllerVersion: Version for HierarchyController.

func (ConfigManagementHierarchyControllerVersion)MarshalJSONadded inv0.201.0

typeConfigManagementInstallErroradded inv0.201.0

type ConfigManagementInstallError struct {// ErrorMessage: A string representing the user facing error message.ErrorMessagestring `json:"errorMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "ErrorMessage") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ErrorMessage") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementInstallError: Errors pertaining to the installation of ACM.

func (ConfigManagementInstallError)MarshalJSONadded inv0.201.0

func (sConfigManagementInstallError) MarshalJSON() ([]byte,error)

typeConfigManagementOciConfigadded inv0.201.0

type ConfigManagementOciConfig struct {// GcpServiceAccountEmail: Optional. The Google Cloud Service Account Email// used for auth when secret_type is gcpServiceAccount.GcpServiceAccountEmailstring `json:"gcpServiceAccountEmail,omitempty"`// PolicyDir: Optional. The absolute path of the directory that contains the// local resources. Default: the root directory of the image.PolicyDirstring `json:"policyDir,omitempty"`// SecretType: Required. Type of secret configured for access to the OCI repo.// Must be one of gcenode, gcpserviceaccount, k8sserviceaccount or none. The// validation of this is case-sensitive.SecretTypestring `json:"secretType,omitempty"`// SyncRepo: Required. The OCI image repository URL for the package to sync// from. e.g.// `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.SyncRepostring `json:"syncRepo,omitempty"`// SyncWaitSecs: Optional. Period in seconds between consecutive syncs.// Default: 15.SyncWaitSecsint64 `json:"syncWaitSecs,omitempty,string"`// ForceSendFields is a list of field names (e.g. "GcpServiceAccountEmail") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GcpServiceAccountEmail") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementOciConfig: OCI repo configuration for a single cluster.

func (ConfigManagementOciConfig)MarshalJSONadded inv0.201.0

func (sConfigManagementOciConfig) MarshalJSON() ([]byte,error)

typeConfigManagementOperatorStateadded inv0.201.0

type ConfigManagementOperatorState struct {// DeploymentState: The state of the Operator's deployment.//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Deployment's state cannot be determined.//   "NOT_INSTALLED" - Deployment is not installed.//   "INSTALLED" - Deployment is installed.//   "ERROR" - Deployment was attempted to be installed, but has errors.//   "PENDING" - Deployment is installing or terminatingDeploymentStatestring `json:"deploymentState,omitempty"`// Errors: Install errors.Errors []*ConfigManagementInstallError `json:"errors,omitempty"`// Version: The semenatic version number of the operator.Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "DeploymentState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeploymentState") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementOperatorState: State information for an ACM's Operator.

func (ConfigManagementOperatorState)MarshalJSONadded inv0.201.0

func (sConfigManagementOperatorState) MarshalJSON() ([]byte,error)

typeConfigManagementPolicyControlleradded inv0.201.0

type ConfigManagementPolicyController struct {// AuditIntervalSeconds: Sets the interval for Policy Controller Audit Scans// (in seconds). When set to 0, this disables audit functionality altogether.AuditIntervalSecondsint64 `json:"auditIntervalSeconds,omitempty,string"`// Enabled: Enables the installation of Policy Controller. If false, the rest// of PolicyController fields take no effect.Enabledbool `json:"enabled,omitempty"`// ExemptableNamespaces: The set of namespaces that are excluded from Policy// Controller checks. Namespaces do not need to currently exist on the cluster.ExemptableNamespaces []string `json:"exemptableNamespaces,omitempty"`// LogDeniesEnabled: Logs all denies and dry run failures.LogDeniesEnabledbool `json:"logDeniesEnabled,omitempty"`// Monitoring: Monitoring specifies the configuration of monitoring.Monitoring *ConfigManagementPolicyControllerMonitoring `json:"monitoring,omitempty"`// MutationEnabled: Enable or disable mutation in policy controller. If true,// mutation CRDs, webhook and controller deployment will be deployed to the// cluster.MutationEnabledbool `json:"mutationEnabled,omitempty"`// ReferentialRulesEnabled: Enables the ability to use Constraint Templates// that reference to objects other than the object currently being evaluated.ReferentialRulesEnabledbool `json:"referentialRulesEnabled,omitempty"`// TemplateLibraryInstalled: Installs the default template library along with// Policy Controller.TemplateLibraryInstalledbool `json:"templateLibraryInstalled,omitempty"`// UpdateTime: Output only. Last time this membership spec was updated.UpdateTimestring `json:"updateTime,omitempty"`// ForceSendFields is a list of field names (e.g. "AuditIntervalSeconds") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuditIntervalSeconds") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementPolicyController: Configuration for Policy Controller

func (ConfigManagementPolicyController)MarshalJSONadded inv0.201.0

func (sConfigManagementPolicyController) MarshalJSON() ([]byte,error)

typeConfigManagementPolicyControllerMigrationadded inv0.201.0

type ConfigManagementPolicyControllerMigration struct {// CopyTime: Last time this membership spec was copied to PoCo feature.CopyTimestring `json:"copyTime,omitempty"`// Stage: Stage of the migration.//// Possible values://   "STAGE_UNSPECIFIED" - Unknown state of migration.//   "ACM_MANAGED" - ACM Hub/Operator manages policycontroller. No migration// yet completed.//   "POCO_MANAGED" - All migrations steps complete; Poco Hub now manages// policycontroller.Stagestring `json:"stage,omitempty"`// ForceSendFields is a list of field names (e.g. "CopyTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CopyTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementPolicyControllerMigration: State for the migration ofPolicyController from ACM -> PoCo Hub.

func (ConfigManagementPolicyControllerMigration)MarshalJSONadded inv0.201.0

typeConfigManagementPolicyControllerMonitoringadded inv0.201.0

type ConfigManagementPolicyControllerMonitoring struct {// Backends: Specifies the list of backends Policy Controller will export to.// An empty list would effectively disable metrics export.//// Possible values://   "MONITORING_BACKEND_UNSPECIFIED" - Backend cannot be determined//   "PROMETHEUS" - Prometheus backend for monitoring//   "CLOUD_MONITORING" - Stackdriver/Cloud Monitoring backend for monitoringBackends []string `json:"backends,omitempty"`// ForceSendFields is a list of field names (e.g. "Backends") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Backends") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementPolicyControllerMonitoring: PolicyControllerMonitoringspecifies the backends Policy Controller should export metrics to. Forexample, to specify metrics should be exported to Cloud Monitoring andPrometheus, specify backends: ["cloudmonitoring", "prometheus"]

func (ConfigManagementPolicyControllerMonitoring)MarshalJSONadded inv0.201.0

typeConfigManagementPolicyControllerStateadded inv0.201.0

type ConfigManagementPolicyControllerState struct {// DeploymentState: The state about the policy controller installation.DeploymentState *ConfigManagementGatekeeperDeploymentState `json:"deploymentState,omitempty"`// Migration: Record state of ACM -> PoCo Hub migration for this feature.Migration *ConfigManagementPolicyControllerMigration `json:"migration,omitempty"`// Version: The version of Gatekeeper Policy Controller deployed.Version *ConfigManagementPolicyControllerVersion `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "DeploymentState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeploymentState") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementPolicyControllerState: State for PolicyControllerState.

func (ConfigManagementPolicyControllerState)MarshalJSONadded inv0.201.0

typeConfigManagementPolicyControllerVersionadded inv0.201.0

type ConfigManagementPolicyControllerVersion struct {// Version: The gatekeeper image tag that is composed of ACM version, git tag,// build number.Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "Version") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Version") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementPolicyControllerVersion: The build version of GatekeeperPolicy Controller is using.

func (ConfigManagementPolicyControllerVersion)MarshalJSONadded inv0.201.0

typeConfigManagementSpecadded inv0.201.0

type ConfigManagementSpec struct {// Binauthz: Optional. Binauthz conifguration for the cluster. Deprecated: This// field will be ignored and should not be set.Binauthz *ConfigManagementBinauthzConfig `json:"binauthz,omitempty"`// Cluster: Optional. The user-specified cluster name used by Config Sync// cluster-name-selector annotation or ClusterSelector, for applying configs to// only a subset of clusters. Omit this field if the cluster's fleet membership// name is used by Config Sync cluster-name-selector annotation or// ClusterSelector. Set this field if a name different from the cluster's fleet// membership name is used by Config Sync cluster-name-selector annotation or// ClusterSelector.Clusterstring `json:"cluster,omitempty"`// ConfigSync: Optional. Config Sync configuration for the cluster.ConfigSync *ConfigManagementConfigSync `json:"configSync,omitempty"`// HierarchyController: Optional. Hierarchy Controller configuration for the// cluster. Deprecated: Configuring Hierarchy Controller through the// configmanagement feature is no longer recommended. Use//https://github.com/kubernetes-sigs/hierarchical-namespaces instead.HierarchyController *ConfigManagementHierarchyControllerConfig `json:"hierarchyController,omitempty"`// Management: Optional. Enables automatic Feature management.//// Possible values://   "MANAGEMENT_UNSPECIFIED" - Unspecified//   "MANAGEMENT_AUTOMATIC" - Google will manage the Feature for the cluster.//   "MANAGEMENT_MANUAL" - User will manually manage the Feature for the// cluster.Managementstring `json:"management,omitempty"`// PolicyController: Optional. Policy Controller configuration for the cluster.// Deprecated: Configuring Policy Controller through the configmanagement// feature is no longer recommended. Use the policycontroller feature instead.PolicyController *ConfigManagementPolicyController `json:"policyController,omitempty"`// Version: Optional. Version of ACM installed.Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "Binauthz") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Binauthz") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementSpec: **Anthos Config Management**: Configuration for asingle cluster. Intended to parallel the ConfigManagement CR.

func (ConfigManagementSpec)MarshalJSONadded inv0.201.0

func (sConfigManagementSpec) MarshalJSON() ([]byte,error)

typeConfigManagementStateadded inv0.201.0

type ConfigManagementState struct {// BinauthzState: Output only. Binauthz status.BinauthzState *ConfigManagementBinauthzState `json:"binauthzState,omitempty"`// ClusterName: Output only. This field is set to the `cluster_name` field of// the Membership Spec if it is not empty. Otherwise, it is set to the// cluster's fleet membership name.ClusterNamestring `json:"clusterName,omitempty"`// ConfigSyncState: Output only. Current sync status.ConfigSyncState *ConfigManagementConfigSyncState `json:"configSyncState,omitempty"`// HierarchyControllerState: Output only. Hierarchy Controller status.HierarchyControllerState *ConfigManagementHierarchyControllerState `json:"hierarchyControllerState,omitempty"`// KubernetesApiServerVersion: Output only. The Kubernetes API server version// of the cluster.KubernetesApiServerVersionstring `json:"kubernetesApiServerVersion,omitempty"`// MembershipSpec: Output only. Membership configuration in the cluster. This// represents the actual state in the cluster, while the MembershipSpec in the// FeatureSpec represents the intended state.MembershipSpec *ConfigManagementSpec `json:"membershipSpec,omitempty"`// OperatorState: Output only. Current install status of ACM's Operator.OperatorState *ConfigManagementOperatorState `json:"operatorState,omitempty"`// PolicyControllerState: Output only. PolicyController status.PolicyControllerState *ConfigManagementPolicyControllerState `json:"policyControllerState,omitempty"`// ForceSendFields is a list of field names (e.g. "BinauthzState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BinauthzState") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementState: **Anthos Config Management**: State for a singlecluster.

func (ConfigManagementState)MarshalJSONadded inv0.201.0

func (sConfigManagementState) MarshalJSON() ([]byte,error)

typeConfigManagementSyncErroradded inv0.201.0

type ConfigManagementSyncError struct {// Code: An ACM defined error codeCodestring `json:"code,omitempty"`// ErrorMessage: A description of the errorErrorMessagestring `json:"errorMessage,omitempty"`// ErrorResources: A list of config(s) associated with the error, if anyErrorResources []*ConfigManagementErrorResource `json:"errorResources,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementSyncError: An ACM created error representing a problemsyncing configurations.

func (ConfigManagementSyncError)MarshalJSONadded inv0.201.0

func (sConfigManagementSyncError) MarshalJSON() ([]byte,error)

typeConfigManagementSyncStateadded inv0.201.0

type ConfigManagementSyncState struct {// Code: Sync status code.//// Possible values://   "SYNC_CODE_UNSPECIFIED" - Config Sync cannot determine a sync code//   "SYNCED" - Config Sync successfully synced the git Repo with the cluster//   "PENDING" - Config Sync is in the progress of syncing a new change//   "ERROR" - Indicates an error configuring Config Sync, and user action is// required//   "NOT_CONFIGURED" - Config Sync has been installed but not configured//   "NOT_INSTALLED" - Config Sync has not been installed//   "UNAUTHORIZED" - Error authorizing with the cluster//   "UNREACHABLE" - Cluster could not be reachedCodestring `json:"code,omitempty"`// Errors: A list of errors resulting from problematic configs. This list will// be truncated after 100 errors, although it is unlikely for that many errors// to simultaneously exist.Errors []*ConfigManagementSyncError `json:"errors,omitempty"`// ImportToken: Token indicating the state of the importer.ImportTokenstring `json:"importToken,omitempty"`// LastSync: Deprecated: use last_sync_time instead. Timestamp of when ACM last// successfully synced the repo. The time format is specified in//https://golang.org/pkg/time/#Time.StringLastSyncstring `json:"lastSync,omitempty"`// LastSyncTime: Timestamp type of when ACM last successfully synced the repo.LastSyncTimestring `json:"lastSyncTime,omitempty"`// SourceToken: Token indicating the state of the repo.SourceTokenstring `json:"sourceToken,omitempty"`// SyncToken: Token indicating the state of the syncer.SyncTokenstring `json:"syncToken,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigManagementSyncState: State indicating an ACM's progress syncingconfigurations to a cluster.

func (ConfigManagementSyncState)MarshalJSONadded inv0.201.0

func (sConfigManagementSyncState) MarshalJSON() ([]byte,error)

typeEmpty

type Empty struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}

Empty: A generic empty message that you can re-use to avoid definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

typeFeatureSpec

type FeatureSpec struct {// Cloudbuild: Cloudbuild-specific FeatureSpec.Cloudbuild *CloudBuildSpec `json:"cloudbuild,omitempty"`// Configmanagement: Config Management FeatureSpec.Configmanagement *ConfigManagementSpec `json:"configmanagement,omitempty"`// Identityservice: IdentityService FeatureSpec.Identityservice *IdentityServiceSpec `json:"identityservice,omitempty"`// Origin: Whether this per-Feature spec was inherited from a fleet-level// default. This field can be updated by users by either overriding a Feature// config (updated to USER implicitly) or setting to FLEET explicitly.Origin *Origin `json:"origin,omitempty"`// Policycontroller: Policycontroller-specific FeatureSpec.Policycontroller *PolicyControllerSpec `json:"policycontroller,omitempty"`// Rbacrolebindingactuation: Rbacrolebindingactuation-specific FeatureSpec.Rbacrolebindingactuation *RBACRoleBindingActuationSpec `json:"rbacrolebindingactuation,omitempty"`// Servicemesh: ServiceMesh Feature Spec.Servicemesh *ServiceMeshSpec `json:"servicemesh,omitempty"`// Workloadcertificate: Workloadcertificate-specific FeatureSpec.Workloadcertificate *WorkloadCertificateSpec `json:"workloadcertificate,omitempty"`// ForceSendFields is a list of field names (e.g. "Cloudbuild") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Cloudbuild") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FeatureSpec: FeatureSpec contains user input per-feature spec information.

func (FeatureSpec)MarshalJSONadded inv0.201.0

func (sFeatureSpec) MarshalJSON() ([]byte,error)

typeFeatureState

type FeatureState struct {// Appdevexperience: Appdevexperience specific state.Appdevexperience *AppDevExperienceState `json:"appdevexperience,omitempty"`// Clusterupgrade: Cluster upgrade state.Clusterupgrade *ClusterUpgradeState `json:"clusterupgrade,omitempty"`// Configmanagement: Config Management stateConfigmanagement *ConfigManagementState `json:"configmanagement,omitempty"`// Identityservice: Identity service stateIdentityservice *IdentityServiceState `json:"identityservice,omitempty"`// Metering: Metering stateMetering *MeteringState `json:"metering,omitempty"`// Policycontroller: Policy Controller statePolicycontroller *PolicyControllerState `json:"policycontroller,omitempty"`// Rbacrolebindingactuation: RBAC Role Binding Actuation stateRbacrolebindingactuation *RBACRoleBindingActuationState `json:"rbacrolebindingactuation,omitempty"`// Servicemesh: Service mesh stateServicemesh *ServiceMeshState `json:"servicemesh,omitempty"`// State: The high-level state of this MembershipFeature.State *State `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "Appdevexperience") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Appdevexperience") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FeatureState: FeatureState contains high-level state information andper-feature state information for this MembershipFeature.

func (FeatureState)MarshalJSON

func (sFeatureState) MarshalJSON() ([]byte,error)

typeGoogleRpcStatus

type GoogleRpcStatus struct {// Code: The status code, which should be an enum value of google.rpc.Code.Codeint64 `json:"code,omitempty"`// Details: A list of messages that carry the error details. There is a common// set of message types for APIs to use.Details []googleapi.RawMessage `json:"details,omitempty"`// Message: A developer-facing error message, which should be in English. Any// user-facing error message should be localized and sent in the// google.rpc.Status.details field, or localized by the client.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleRpcStatus: The `Status` type defines a logical error model that issuitable for different programming environments, including REST APIs and RPCAPIs. It is used by gRPC (https://github.com/grpc). Each `Status` messagecontains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in theAPI Design Guide (https://cloud.google.com/apis/design/errors).

func (GoogleRpcStatus)MarshalJSON

func (sGoogleRpcStatus) MarshalJSON() ([]byte,error)

typeIdentityServiceAuthMethodadded inv0.201.0

type IdentityServiceAuthMethod struct {// AzureadConfig: AzureAD specific Configuration.AzureadConfig *IdentityServiceAzureADConfig `json:"azureadConfig,omitempty"`// GoogleConfig: GoogleConfig specific configurationGoogleConfig *IdentityServiceGoogleConfig `json:"googleConfig,omitempty"`// LdapConfig: LDAP specific configuration.LdapConfig *IdentityServiceLdapConfig `json:"ldapConfig,omitempty"`// Name: Identifier for auth config.Namestring `json:"name,omitempty"`// OidcConfig: OIDC specific configuration.OidcConfig *IdentityServiceOidcConfig `json:"oidcConfig,omitempty"`// Proxy: Proxy server address to use for auth method.Proxystring `json:"proxy,omitempty"`// SamlConfig: SAML specific configuration.SamlConfig *IdentityServiceSamlConfig `json:"samlConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "AzureadConfig") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AzureadConfig") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceAuthMethod: Configuration of an auth method for amember/cluster. Only one authentication method (e.g., OIDC and LDAP) can beset per AuthMethod.

func (IdentityServiceAuthMethod)MarshalJSONadded inv0.201.0

func (sIdentityServiceAuthMethod) MarshalJSON() ([]byte,error)

typeIdentityServiceAzureADConfigadded inv0.201.0

type IdentityServiceAzureADConfig struct {// ClientId: ID for the registered client application that makes authentication// requests to the Azure AD identity provider.ClientIdstring `json:"clientId,omitempty"`// ClientSecret: Input only. Unencrypted AzureAD client secret will be passed// to the GKE Hub CLH.ClientSecretstring `json:"clientSecret,omitempty"`// EncryptedClientSecret: Output only. Encrypted AzureAD client secret.EncryptedClientSecretstring `json:"encryptedClientSecret,omitempty"`// GroupFormat: Optional. Format of the AzureAD groups that the client wants// for auth.GroupFormatstring `json:"groupFormat,omitempty"`// KubectlRedirectUri: The redirect URL that kubectl uses for authorization.KubectlRedirectUristring `json:"kubectlRedirectUri,omitempty"`// Tenant: Kind of Azure AD account to be authenticated. Supported values are// or for accounts belonging to a specific tenant.Tenantstring `json:"tenant,omitempty"`// UserClaim: Optional. Claim in the AzureAD ID Token that holds the user// details.UserClaimstring `json:"userClaim,omitempty"`// ForceSendFields is a list of field names (e.g. "ClientId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClientId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceAzureADConfig: Configuration for the AzureAD Auth flow.

func (IdentityServiceAzureADConfig)MarshalJSONadded inv0.201.0

func (sIdentityServiceAzureADConfig) MarshalJSON() ([]byte,error)

typeIdentityServiceDiagnosticInterfaceadded inv0.201.0

type IdentityServiceDiagnosticInterface struct {// Enabled: Determines whether to enable the diagnostic interface.Enabledbool `json:"enabled,omitempty"`// ExpirationTime: Determines the expiration time of the diagnostic interface// enablement. When reached, requests to the interface would be automatically// rejected.ExpirationTimestring `json:"expirationTime,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceDiagnosticInterface: Configuration options for the AISdiagnostic interface.

func (IdentityServiceDiagnosticInterface)MarshalJSONadded inv0.201.0

typeIdentityServiceGoogleConfigadded inv0.201.0

type IdentityServiceGoogleConfig struct {// Disable: Disable automatic configuration of Google Plugin on supported// platforms.Disablebool `json:"disable,omitempty"`// ForceSendFields is a list of field names (e.g. "Disable") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Disable") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceGoogleConfig: Configuration for the Google Plugin Auth flow.

func (IdentityServiceGoogleConfig)MarshalJSONadded inv0.201.0

func (sIdentityServiceGoogleConfig) MarshalJSON() ([]byte,error)

typeIdentityServiceGroupConfigadded inv0.201.0

type IdentityServiceGroupConfig struct {// BaseDn: Required. The location of the subtree in the LDAP directory to// search for group entries.BaseDnstring `json:"baseDn,omitempty"`// Filter: Optional. Optional filter to be used when searching for groups a// user belongs to. This can be used to explicitly match only certain groups in// order to reduce the amount of groups returned for each user. This defaults// to "(objectClass=Group)".Filterstring `json:"filter,omitempty"`// IdAttribute: Optional. The identifying name of each group a user belongs to.// For example, if this is set to "distinguishedName" then RBACs and other// group expectations should be written as full DNs. This defaults to// "distinguishedName".IdAttributestring `json:"idAttribute,omitempty"`// ForceSendFields is a list of field names (e.g. "BaseDn") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BaseDn") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceGroupConfig: Contains the properties for locating andauthenticating groups in the directory.

func (IdentityServiceGroupConfig)MarshalJSONadded inv0.201.0

func (sIdentityServiceGroupConfig) MarshalJSON() ([]byte,error)

typeIdentityServiceIdentityServiceOptionsadded inv0.201.0

type IdentityServiceIdentityServiceOptions struct {// DiagnosticInterface: Configuration options for the AIS diagnostic interface.DiagnosticInterface *IdentityServiceDiagnosticInterface `json:"diagnosticInterface,omitempty"`// SessionDuration: Determines the lifespan of STS tokens issued by Anthos// Identity Service.SessionDurationstring `json:"sessionDuration,omitempty"`// ForceSendFields is a list of field names (e.g. "DiagnosticInterface") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DiagnosticInterface") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceIdentityServiceOptions: Holds non-protocol-relatedconfiguration options.

func (IdentityServiceIdentityServiceOptions)MarshalJSONadded inv0.201.0

typeIdentityServiceLdapConfigadded inv0.201.0

type IdentityServiceLdapConfig struct {// Group: Optional. Contains the properties for locating and authenticating// groups in the directory.Group *IdentityServiceGroupConfig `json:"group,omitempty"`// Server: Required. Server settings for the external LDAP server.Server *IdentityServiceServerConfig `json:"server,omitempty"`// ServiceAccount: Required. Contains the credentials of the service account// which is authorized to perform the LDAP search in the directory. The// credentials can be supplied by the combination of the DN and password or the// client certificate.ServiceAccount *IdentityServiceServiceAccountConfig `json:"serviceAccount,omitempty"`// User: Required. Defines where users exist in the LDAP directory.User *IdentityServiceUserConfig `json:"user,omitempty"`// ForceSendFields is a list of field names (e.g. "Group") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Group") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceLdapConfig: Configuration for the LDAP Auth flow.

func (IdentityServiceLdapConfig)MarshalJSONadded inv0.201.0

func (sIdentityServiceLdapConfig) MarshalJSON() ([]byte,error)

typeIdentityServiceOidcConfigadded inv0.201.0

type IdentityServiceOidcConfig struct {// CertificateAuthorityData: PEM-encoded CA for OIDC provider.CertificateAuthorityDatastring `json:"certificateAuthorityData,omitempty"`// ClientId: ID for OIDC client application.ClientIdstring `json:"clientId,omitempty"`// ClientSecret: Input only. Unencrypted OIDC client secret will be passed to// the GKE Hub CLH.ClientSecretstring `json:"clientSecret,omitempty"`// DeployCloudConsoleProxy: Flag to denote if reverse proxy is used to connect// to auth provider. This flag should be set to true when provider is not// reachable by Google Cloud Console.DeployCloudConsoleProxybool `json:"deployCloudConsoleProxy,omitempty"`// EnableAccessToken: Enable access token.EnableAccessTokenbool `json:"enableAccessToken,omitempty"`// EncryptedClientSecret: Output only. Encrypted OIDC Client secretEncryptedClientSecretstring `json:"encryptedClientSecret,omitempty"`// ExtraParams: Comma-separated list of key-value pairs.ExtraParamsstring `json:"extraParams,omitempty"`// GroupPrefix: Prefix to prepend to group name.GroupPrefixstring `json:"groupPrefix,omitempty"`// GroupsClaim: Claim in OIDC ID token that holds group information.GroupsClaimstring `json:"groupsClaim,omitempty"`// IssuerUri: URI for the OIDC provider. This should point to the level below// .well-known/openid-configuration.IssuerUristring `json:"issuerUri,omitempty"`// KubectlRedirectUri: Registered redirect uri to redirect users going through// OAuth flow using kubectl plugin.KubectlRedirectUristring `json:"kubectlRedirectUri,omitempty"`// Scopes: Comma-separated list of identifiers.Scopesstring `json:"scopes,omitempty"`// UserClaim: Claim in OIDC ID token that holds username.UserClaimstring `json:"userClaim,omitempty"`// UserPrefix: Prefix to prepend to user name.UserPrefixstring `json:"userPrefix,omitempty"`// ForceSendFields is a list of field names (e.g. "CertificateAuthorityData")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CertificateAuthorityData") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceOidcConfig: Configuration for OIDC Auth flow.

func (IdentityServiceOidcConfig)MarshalJSONadded inv0.201.0

func (sIdentityServiceOidcConfig) MarshalJSON() ([]byte,error)

typeIdentityServiceSamlConfigadded inv0.201.0

type IdentityServiceSamlConfig struct {// AttributeMapping: Optional. The mapping of additional user attributes like// nickname, birthday and address etc.. `key` is the name of this additional// attribute. `value` is a string presenting as CEL(common expression language,// go/cel) used for getting the value from the resources. Take nickname as an// example, in this case, `key` is "attribute.nickname" and `value` is// "assertion.nickname".AttributeMapping map[string]string `json:"attributeMapping,omitempty"`// GroupPrefix: Optional. Prefix to prepend to group name.GroupPrefixstring `json:"groupPrefix,omitempty"`// GroupsAttribute: Optional. The SAML attribute to read groups from. This// value is expected to be a string and will be passed along as-is (with the// option of being prefixed by the `group_prefix`).GroupsAttributestring `json:"groupsAttribute,omitempty"`// IdentityProviderCertificates: Required. The list of IdP certificates to// validate the SAML response against.IdentityProviderCertificates []string `json:"identityProviderCertificates,omitempty"`// IdentityProviderId: Required. The entity ID of the SAML IdP.IdentityProviderIdstring `json:"identityProviderId,omitempty"`// IdentityProviderSsoUri: Required. The URI where the SAML IdP exposes the SSO// service.IdentityProviderSsoUristring `json:"identityProviderSsoUri,omitempty"`// UserAttribute: Optional. The SAML attribute to read username from. If// unspecified, the username will be read from the NameID element of the// assertion in SAML response. This value is expected to be a string and will// be passed along as-is (with the option of being prefixed by the// `user_prefix`).UserAttributestring `json:"userAttribute,omitempty"`// UserPrefix: Optional. Prefix to prepend to user name.UserPrefixstring `json:"userPrefix,omitempty"`// ForceSendFields is a list of field names (e.g. "AttributeMapping") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AttributeMapping") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceSamlConfig: Configuration for the SAML Auth flow.

func (IdentityServiceSamlConfig)MarshalJSONadded inv0.201.0

func (sIdentityServiceSamlConfig) MarshalJSON() ([]byte,error)

typeIdentityServiceServerConfigadded inv0.201.0

type IdentityServiceServerConfig struct {// CertificateAuthorityData: Optional. Contains a Base64 encoded, PEM formatted// certificate authority certificate for the LDAP server. This must be provided// for the "ldaps" and "startTLS" connections.CertificateAuthorityDatastring `json:"certificateAuthorityData,omitempty"`// ConnectionType: Optional. Defines the connection type to communicate with// the LDAP server. If `starttls` or `ldaps` is specified, the// certificate_authority_data should not be empty.ConnectionTypestring `json:"connectionType,omitempty"`// Host: Required. Defines the hostname or IP of the LDAP server. Port is// optional and will default to 389, if unspecified. For example,// "ldap.server.example" or "10.10.10.10:389".Hoststring `json:"host,omitempty"`// ForceSendFields is a list of field names (e.g. "CertificateAuthorityData")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CertificateAuthorityData") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceServerConfig: Server settings for the external LDAP server.

func (IdentityServiceServerConfig)MarshalJSONadded inv0.201.0

func (sIdentityServiceServerConfig) MarshalJSON() ([]byte,error)

typeIdentityServiceServiceAccountConfigadded inv0.201.0

type IdentityServiceServiceAccountConfig struct {// SimpleBindCredentials: Credentials for basic auth.SimpleBindCredentials *IdentityServiceSimpleBindCredentials `json:"simpleBindCredentials,omitempty"`// ForceSendFields is a list of field names (e.g. "SimpleBindCredentials") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SimpleBindCredentials") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceServiceAccountConfig: Contains the credentials of the serviceaccount which is authorized to perform the LDAP search in the directory. Thecredentials can be supplied by the combination of the DN and password or theclient certificate.

func (IdentityServiceServiceAccountConfig)MarshalJSONadded inv0.201.0

typeIdentityServiceSimpleBindCredentialsadded inv0.201.0

type IdentityServiceSimpleBindCredentials struct {// Dn: Required. The distinguished name(DN) of the service account object/user.Dnstring `json:"dn,omitempty"`// EncryptedPassword: Output only. The encrypted password of the service// account object/user.EncryptedPasswordstring `json:"encryptedPassword,omitempty"`// Password: Required. Input only. The password of the service account// object/user.Passwordstring `json:"password,omitempty"`// ForceSendFields is a list of field names (e.g. "Dn") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Dn") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceSimpleBindCredentials: The structure holds the LDAP simplebinding credential.

func (IdentityServiceSimpleBindCredentials)MarshalJSONadded inv0.201.0

typeIdentityServiceSpecadded inv0.201.0

type IdentityServiceSpec struct {// AuthMethods: A member may support multiple auth methods.AuthMethods []*IdentityServiceAuthMethod `json:"authMethods,omitempty"`// IdentityServiceOptions: Optional. non-protocol-related configuration// options.IdentityServiceOptions *IdentityServiceIdentityServiceOptions `json:"identityServiceOptions,omitempty"`// ForceSendFields is a list of field names (e.g. "AuthMethods") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuthMethods") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceSpec: **IdentityService**: Configuration for a singlemembership.

func (IdentityServiceSpec)MarshalJSONadded inv0.201.0

func (sIdentityServiceSpec) MarshalJSON() ([]byte,error)

typeIdentityServiceStateadded inv0.201.0

type IdentityServiceState struct {// FailureReason: The reason of the failure.FailureReasonstring `json:"failureReason,omitempty"`// InstalledVersion: Installed AIS version. This is the AIS version installed// on this member. The values makes sense iff state is OK.InstalledVersionstring `json:"installedVersion,omitempty"`// MemberConfig: Last reconciled membership configurationMemberConfig *IdentityServiceSpec `json:"memberConfig,omitempty"`// State: Deployment state on this member//// Possible values://   "DEPLOYMENT_STATE_UNSPECIFIED" - Unspecified state//   "OK" - deployment succeeds//   "ERROR" - Failure with error.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "FailureReason") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FailureReason") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceState: **IdentityService**: State for a single membership,analyzed and reported by feature controller.

func (IdentityServiceState)MarshalJSONadded inv0.201.0

func (sIdentityServiceState) MarshalJSON() ([]byte,error)

typeIdentityServiceUserConfigadded inv0.201.0

type IdentityServiceUserConfig struct {// BaseDn: Required. The location of the subtree in the LDAP directory to// search for user entries.BaseDnstring `json:"baseDn,omitempty"`// Filter: Optional. Filter to apply when searching for the user. This can be// used to further restrict the user accounts which are allowed to login. This// defaults to "(objectClass=User)".Filterstring `json:"filter,omitempty"`// IdAttribute: Optional. Determines which attribute to use as the user's// identity after they are authenticated. This is distinct from the// loginAttribute field to allow users to login with a username, but then have// their actual identifier be an email address or full Distinguished Name (DN).// For example, setting loginAttribute to "sAMAccountName" and// identifierAttribute to "userPrincipalName" would allow a user to login as// "bsmith", but actual RBAC policies for the user would be written as// "bsmith@example.com". Using "userPrincipalName" is recommended since this// will be unique for each user. This defaults to "userPrincipalName".IdAttributestring `json:"idAttribute,omitempty"`// LoginAttribute: Optional. The name of the attribute which matches against// the input username. This is used to find the user in the LDAP database e.g.// "(=)" and is combined with the optional filter field. This defaults to// "userPrincipalName".LoginAttributestring `json:"loginAttribute,omitempty"`// ForceSendFields is a list of field names (e.g. "BaseDn") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BaseDn") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IdentityServiceUserConfig: Defines where users exist in the LDAP directory.

func (IdentityServiceUserConfig)MarshalJSONadded inv0.201.0

func (sIdentityServiceUserConfig) MarshalJSON() ([]byte,error)

typeLifecycleStateadded inv0.201.0

type LifecycleState struct {// State: Output only. The current state of the Feature resource in the Hub// API.//// Possible values://   "STATE_UNSPECIFIED" - State is unknown or not set.//   "ENABLING" - The MembershipFeature is being enabled, and the// MembershipFeature resource is being created. Once complete, the// corresponding MembershipFeature will be enabled in this Hub.//   "ACTIVE" - The MembershipFeature is enabled in this Hub, and the// MembershipFeature resource is fully available.//   "DISABLING" - The MembershipFeature is being disabled in this Hub, and the// MembershipFeature resource is being deleted.//   "UPDATING" - The MembershipFeature resource is being updated.//   "SERVICE_UPDATING" - The MembershipFeature resource is being updated by// the Hub Service.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "State") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "State") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

LifecycleState: LifecycleState describes the state of a MembershipFeature*resource* in the GkeHub API. See `FeatureState` for the "running state" ofthe MembershipFeature.

func (LifecycleState)MarshalJSONadded inv0.201.0

func (sLifecycleState) MarshalJSON() ([]byte,error)

typeListLocationsResponse

type ListLocationsResponse struct {// Locations: A list of locations that matches the specified filter in the// request.Locations []*Location `json:"locations,omitempty"`// NextPageToken: The standard List next-page token.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Locations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Locations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListLocationsResponse: The response message for Locations.ListLocations.

func (ListLocationsResponse)MarshalJSON

func (sListLocationsResponse) MarshalJSON() ([]byte,error)

typeListMembershipFeaturesResponse

type ListMembershipFeaturesResponse struct {// MembershipFeatures: The list of matching MembershipFeatures.MembershipFeatures []*MembershipFeature `json:"membershipFeatures,omitempty"`// NextPageToken: A token to request the next page of resources from the// `ListMembershipFeatures` method. The value of an empty string means that// there are no more resources to return.NextPageTokenstring `json:"nextPageToken,omitempty"`// Unreachable: List of locations that could not be reached while fetching this// list.Unreachable []string `json:"unreachable,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "MembershipFeatures") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MembershipFeatures") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListMembershipFeaturesResponse: Response message for the`GkeHubFeature.ListMembershipFeatures` method.

func (ListMembershipFeaturesResponse)MarshalJSON

func (sListMembershipFeaturesResponse) MarshalJSON() ([]byte,error)

typeListOperationsResponse

type ListOperationsResponse struct {// NextPageToken: The standard List next-page token.NextPageTokenstring `json:"nextPageToken,omitempty"`// Operations: A list of operations that matches the specified filter in the// request.Operations []*Operation `json:"operations,omitempty"`// Unreachable: Unordered list. Unreachable resources. Populated when the// request sets `ListOperationsRequest.return_partial_success` and reads across// collections e.g. when attempting to list all resources across all supported// locations.Unreachable []string `json:"unreachable,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListOperationsResponse: The response message for Operations.ListOperations.

func (ListOperationsResponse)MarshalJSON

func (sListOperationsResponse) MarshalJSON() ([]byte,error)

typeLocation

type Location struct {// DisplayName: The friendly name for this location, typically a nearby city// name. For example, "Tokyo".DisplayNamestring `json:"displayName,omitempty"`// Labels: Cross-service attributes for the location. For example// {"cloud.googleapis.com/region": "us-east1"}Labels map[string]string `json:"labels,omitempty"`// LocationId: The canonical id for this location. For example: "us-east1".LocationIdstring `json:"locationId,omitempty"`// Metadata: Service-specific metadata. For example the available capacity at// the given location.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: Resource name for the location, which may vary between// implementations. For example:// "projects/example-project/locations/us-east1"Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DisplayName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisplayName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Location: A resource that represents a Google Cloud location.

func (Location)MarshalJSON

func (sLocation) MarshalJSON() ([]byte,error)

typeMembershipFeature

type MembershipFeature struct {// CreateTime: Output only. When the MembershipFeature resource was created.CreateTimestring `json:"createTime,omitempty"`// DeleteTime: Output only. When the MembershipFeature resource was deleted.DeleteTimestring `json:"deleteTime,omitempty"`// Labels: GCP labels for this MembershipFeature.Labels map[string]string `json:"labels,omitempty"`// LifecycleState: Output only. Lifecycle information of the resource itself.LifecycleState *LifecycleState `json:"lifecycleState,omitempty"`// Name: Output only. The resource name of the membershipFeature, in the// format:// `projects/{project}/locations/{location}/memberships/{membership}/features/{f// eature}`. Note that `membershipFeatures` is shortened to `features` in the// resource name. (seehttp://go/aip/122#collection-identifiers)Namestring `json:"name,omitempty"`// Spec: Optional. Spec of this membershipFeature.Spec *FeatureSpec `json:"spec,omitempty"`// State: Output only. State of the this membershipFeature.State *FeatureState `json:"state,omitempty"`// UpdateTime: Output only. When the MembershipFeature resource was last// updated.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

MembershipFeature: MembershipFeature represents the settings and status of aFleet Feature enabled on a single Fleet Membership.

func (MembershipFeature)MarshalJSON

func (sMembershipFeature) MarshalJSON() ([]byte,error)

typeMeteringStateadded inv0.201.0

type MeteringState struct {// LastMeasurementTime: The time stamp of the most recent measurement of the// number of vCPUs in the cluster.LastMeasurementTimestring `json:"lastMeasurementTime,omitempty"`// PreciseLastMeasuredClusterVcpuCapacity: The vCPUs capacity in the cluster// according to the most recent measurement (1/1000 precision).PreciseLastMeasuredClusterVcpuCapacityfloat64 `json:"preciseLastMeasuredClusterVcpuCapacity,omitempty"`// ForceSendFields is a list of field names (e.g. "LastMeasurementTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LastMeasurementTime") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

MeteringState: **Metering**: State for a single membership, analyzed andreported by feature controller.

func (MeteringState)MarshalJSONadded inv0.201.0

func (sMeteringState) MarshalJSON() ([]byte,error)

func (*MeteringState)UnmarshalJSONadded inv0.201.0

func (s *MeteringState) UnmarshalJSON(data []byte)error

typeOperation

type Operation struct {// Done: If the value is `false`, it means the operation is still in progress.// If `true`, the operation is completed, and either `error` or `response` is// available.Donebool `json:"done,omitempty"`// Error: The error result of the operation in case of failure or cancellation.Error *GoogleRpcStatus `json:"error,omitempty"`// Metadata: Service-specific metadata associated with the operation. It// typically contains progress information and common metadata such as create// time. Some services might not provide such metadata. Any method that returns// a long-running operation should document the metadata type, if any.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: The server-assigned name, which is only unique within the same service// that originally returns it. If you use the default HTTP mapping, the `name`// should be a resource name ending with `operations/{unique_id}`.Namestring `json:"name,omitempty"`// Response: The normal, successful response of the operation. If the original// method returns no data on success, such as `Delete`, the response is// `google.protobuf.Empty`. If the original method is standard// `Get`/`Create`/`Update`, the response should be the resource. For other// methods, the response should have the type `XxxResponse`, where `Xxx` is the// original method name. For example, if the original method name is// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.Responsegoogleapi.RawMessage `json:"response,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Done") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Done") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Operation: This resource represents a long-running operation that is theresult of a network API call.

func (Operation)MarshalJSON

func (sOperation) MarshalJSON() ([]byte,error)

typeOperationMetadata

type OperationMetadata struct {// ApiVersion: Output only. API version used to start the operation.ApiVersionstring `json:"apiVersion,omitempty"`// CancelRequested: 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 of 1,// corresponding to `Code.CANCELLED`.CancelRequestedbool `json:"cancelRequested,omitempty"`// CreateTime: Output only. The time the operation was created.CreateTimestring `json:"createTime,omitempty"`// EndTime: Output only. The time the operation finished running.EndTimestring `json:"endTime,omitempty"`// StatusDetail: Output only. Human-readable status of the operation, if any.StatusDetailstring `json:"statusDetail,omitempty"`// Target: Output only. Server-defined resource path for the target of the// operation.Targetstring `json:"target,omitempty"`// Verb: Output only. Name of the verb executed by the operation.Verbstring `json:"verb,omitempty"`// ForceSendFields is a list of field names (e.g. "ApiVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApiVersion") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

OperationMetadata: Metadata of the long-running operation.

func (OperationMetadata)MarshalJSON

func (sOperationMetadata) MarshalJSON() ([]byte,error)

typeOriginadded inv0.201.0

type Origin struct {// Type: Type specifies which type of origin is set.//// Possible values://   "TYPE_UNSPECIFIED" - Type is unknown or not set.//   "FLEET" - Per-Feature spec was inherited from the fleet-level default.//   "FLEET_OUT_OF_SYNC" - Per-Feature spec was inherited from the fleet-level// default but is now out of sync with the current default.//   "USER" - Per-Feature spec was inherited from a user specification.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Type") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Type") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Origin: Origin defines where this FeatureSpec originated from.

func (Origin)MarshalJSONadded inv0.201.0

func (sOrigin) MarshalJSON() ([]byte,error)

typePolicyControllerBundleInstallSpecadded inv0.201.0

type PolicyControllerBundleInstallSpec struct {// ExemptedNamespaces: the set of namespaces to be exempted from the bundleExemptedNamespaces []string `json:"exemptedNamespaces,omitempty"`// ForceSendFields is a list of field names (e.g. "ExemptedNamespaces") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExemptedNamespaces") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PolicyControllerBundleInstallSpec: BundleInstallSpec is the specificationconfiguration for a single managed bundle.

func (PolicyControllerBundleInstallSpec)MarshalJSONadded inv0.201.0

func (sPolicyControllerBundleInstallSpec) MarshalJSON() ([]byte,error)

typePolicyControllerHubConfigadded inv0.201.0

type PolicyControllerHubConfig struct {// AuditIntervalSeconds: Sets the interval for Policy Controller Audit Scans// (in seconds). When set to 0, this disables audit functionality altogether.AuditIntervalSecondsint64 `json:"auditIntervalSeconds,omitempty,string"`// ConstraintViolationLimit: The maximum number of audit violations to be// stored in a constraint. If not set, the internal default (currently 20) will// be used.ConstraintViolationLimitint64 `json:"constraintViolationLimit,omitempty,string"`// DeploymentConfigs: Map of deployment configs to deployments// (“admission”, “audit”, “mutation”).DeploymentConfigs map[string]PolicyControllerPolicyControllerDeploymentConfig `json:"deploymentConfigs,omitempty"`// ExemptableNamespaces: The set of namespaces that are excluded from Policy// Controller checks. Namespaces do not need to currently exist on the cluster.ExemptableNamespaces []string `json:"exemptableNamespaces,omitempty"`// InstallSpec: The install_spec represents the intended state specified by the// latest request that mutated install_spec in the feature spec, not the// lifecycle state of the feature observed by the Hub feature controller that// is reported in the feature state.//// Possible values://   "INSTALL_SPEC_UNSPECIFIED" - Spec is unknown.//   "INSTALL_SPEC_NOT_INSTALLED" - Request to uninstall Policy Controller.//   "INSTALL_SPEC_ENABLED" - Request to install and enable Policy Controller.//   "INSTALL_SPEC_SUSPENDED" - Request to suspend Policy Controller i.e. its// webhooks. If Policy Controller is not installed, it will be installed but// suspended.//   "INSTALL_SPEC_DETACHED" - Request to stop all reconciliation actions by// PoCo Hub controller. This is a breakglass mechanism to stop PoCo Hub from// affecting cluster resources.InstallSpecstring `json:"installSpec,omitempty"`// LogDeniesEnabled: Logs all denies and dry run failures.LogDeniesEnabledbool `json:"logDeniesEnabled,omitempty"`// Monitoring: Monitoring specifies the configuration of monitoring.Monitoring *PolicyControllerMonitoringConfig `json:"monitoring,omitempty"`// MutationEnabled: Enables the ability to mutate resources using Policy// Controller.MutationEnabledbool `json:"mutationEnabled,omitempty"`// PolicyContent: Specifies the desired policy content on the clusterPolicyContent *PolicyControllerPolicyContentSpec `json:"policyContent,omitempty"`// ReferentialRulesEnabled: Enables the ability to use Constraint Templates// that reference to objects other than the object currently being evaluated.ReferentialRulesEnabledbool `json:"referentialRulesEnabled,omitempty"`// ForceSendFields is a list of field names (e.g. "AuditIntervalSeconds") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuditIntervalSeconds") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PolicyControllerHubConfig: Configuration for Policy Controller

func (PolicyControllerHubConfig)MarshalJSONadded inv0.201.0

func (sPolicyControllerHubConfig) MarshalJSON() ([]byte,error)

typePolicyControllerMonitoringConfigadded inv0.201.0

type PolicyControllerMonitoringConfig struct {// Backends: Specifies the list of backends Policy Controller will export to.// An empty list would effectively disable metrics export.//// Possible values://   "MONITORING_BACKEND_UNSPECIFIED" - Backend cannot be determined//   "PROMETHEUS" - Prometheus backend for monitoring//   "CLOUD_MONITORING" - Stackdriver/Cloud Monitoring backend for monitoringBackends []string `json:"backends,omitempty"`// ForceSendFields is a list of field names (e.g. "Backends") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Backends") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PolicyControllerMonitoringConfig: MonitoringConfig specifies the backendsPolicy Controller should export metrics to. For example, to specify metricsshould be exported to Cloud Monitoring and Prometheus, specify backends:["cloudmonitoring", "prometheus"]

func (PolicyControllerMonitoringConfig)MarshalJSONadded inv0.201.0

func (sPolicyControllerMonitoringConfig) MarshalJSON() ([]byte,error)

typePolicyControllerOnClusterStateadded inv0.201.0

type PolicyControllerOnClusterState struct {// Details: Surface potential errors or information logs.Detailsstring `json:"details,omitempty"`// State: The lifecycle state of this component.//// Possible values://   "LIFECYCLE_STATE_UNSPECIFIED" - The lifecycle state is unspecified.//   "NOT_INSTALLED" - The PC does not exist on the given cluster, and no k8s// resources of any type that are associated with the PC should exist there.// The cluster does not possess a membership with the PCH.//   "INSTALLING" - The PCH possesses a Membership, however the PC is not fully// installed on the cluster. In this state the hub can be expected to be taking// actions to install the PC on the cluster.//   "ACTIVE" - The PC is fully installed on the cluster and in an operational// mode. In this state PCH will be reconciling state with the PC, and the PC// will be performing it's operational tasks per that software. Entering a// READY state requires that the hub has confirmed the PC is installed and its// pods are operational with the version of the PC the PCH expects.//   "UPDATING" - The PC is fully installed, but in the process of changing the// configuration (including changing the version of PC either up and down, or// modifying the manifests of PC) of the resources running on the cluster. The// PCH has a Membership, is aware of the version the cluster should be running// in, but has not confirmed for itself that the PC is running with that// version.//   "DECOMMISSIONING" - The PC may have resources on the cluster, but the PCH// wishes to remove the Membership. The Membership still exists.//   "CLUSTER_ERROR" - The PC is not operational, and the PCH is unable to act// to make it operational. Entering a CLUSTER_ERROR state happens automatically// when the PCH determines that a PC installed on the cluster is non-operative// or that the cluster does not meet requirements set for the PCH to administer// the cluster but has nevertheless been given an instruction to do so (such as// ‘install').//   "HUB_ERROR" - In this state, the PC may still be operational, and only the// PCH is unable to act. The hub should not issue instructions to change the PC// state, or otherwise interfere with the on-cluster resources. Entering a// HUB_ERROR state happens automatically when the PCH determines the hub is in// an unhealthy state and it wishes to ‘take hands off' to avoid corrupting// the PC or other data.//   "SUSPENDED" - Policy Controller (PC) is installed but suspended. This// means that the policies are not enforced, but violations are still recorded// (through audit).//   "DETACHED" - PoCo Hub is not taking any action to reconcile cluster// objects. Changes to those objects will not be overwritten by PoCo Hub.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "Details") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Details") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PolicyControllerOnClusterState: OnClusterState represents the state of asub-component of Policy Controller.

func (PolicyControllerOnClusterState)MarshalJSONadded inv0.201.0

func (sPolicyControllerOnClusterState) MarshalJSON() ([]byte,error)

typePolicyControllerPolicyContentSpecadded inv0.201.0

type PolicyControllerPolicyContentSpec struct {// Bundles: map of bundle name to BundleInstallSpec. The bundle name maps to// the `bundleName` key in the `policycontroller.gke.io/constraintData`// annotation on a constraint.Bundles map[string]PolicyControllerBundleInstallSpec `json:"bundles,omitempty"`// TemplateLibrary: Configures the installation of the Template Library.TemplateLibrary *PolicyControllerTemplateLibraryConfig `json:"templateLibrary,omitempty"`// ForceSendFields is a list of field names (e.g. "Bundles") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Bundles") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PolicyControllerPolicyContentSpec: PolicyContentSpec defines the user'sdesired content configuration on the cluster.

func (PolicyControllerPolicyContentSpec)MarshalJSONadded inv0.201.0

func (sPolicyControllerPolicyContentSpec) MarshalJSON() ([]byte,error)

typePolicyControllerPolicyContentStateadded inv0.201.0

type PolicyControllerPolicyContentState struct {// BundleStates: The state of the any bundles included in the chosen version of// the manifestBundleStates map[string]PolicyControllerOnClusterState `json:"bundleStates,omitempty"`// ReferentialSyncConfigState: The state of the referential data sync// configuration. This could represent the state of either the syncSet// object(s) or the config object, depending on the version of PoCo configured// by the user.ReferentialSyncConfigState *PolicyControllerOnClusterState `json:"referentialSyncConfigState,omitempty"`// TemplateLibraryState: The state of the template libraryTemplateLibraryState *PolicyControllerOnClusterState `json:"templateLibraryState,omitempty"`// ForceSendFields is a list of field names (e.g. "BundleStates") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BundleStates") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PolicyControllerPolicyContentState: The state of the policy controllerpolicy content

func (PolicyControllerPolicyContentState)MarshalJSONadded inv0.201.0

typePolicyControllerPolicyControllerDeploymentConfigadded inv0.201.0

type PolicyControllerPolicyControllerDeploymentConfig struct {// ContainerResources: Container resource requirements.ContainerResources *PolicyControllerResourceRequirements `json:"containerResources,omitempty"`// PodAffinity: Pod affinity configuration.//// Possible values://   "AFFINITY_UNSPECIFIED" - No affinity configuration has been specified.//   "NO_AFFINITY" - Affinity configurations will be removed from the// deployment.//   "ANTI_AFFINITY" - Anti-affinity configuration will be applied to this// deployment. Default for admissions deployment.PodAffinitystring `json:"podAffinity,omitempty"`// PodAntiAffinity: Pod anti-affinity enablement. Deprecated: use// `pod_affinity` instead.PodAntiAffinitybool `json:"podAntiAffinity,omitempty"`// PodTolerations: Pod tolerations of node taints.PodTolerations []*PolicyControllerToleration `json:"podTolerations,omitempty"`// ReplicaCount: Pod replica count.ReplicaCountint64 `json:"replicaCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "ContainerResources") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContainerResources") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PolicyControllerPolicyControllerDeploymentConfig: Deployment-specificconfiguration.

func (PolicyControllerPolicyControllerDeploymentConfig)MarshalJSONadded inv0.201.0

typePolicyControllerResourceListadded inv0.201.0

type PolicyControllerResourceList struct {// Cpu: CPU requirement expressed in Kubernetes resource units.Cpustring `json:"cpu,omitempty"`// Memory: Memory requirement expressed in Kubernetes resource units.Memorystring `json:"memory,omitempty"`// ForceSendFields is a list of field names (e.g. "Cpu") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Cpu") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PolicyControllerResourceList: ResourceList contains container resourcerequirements.

func (PolicyControllerResourceList)MarshalJSONadded inv0.201.0

func (sPolicyControllerResourceList) MarshalJSON() ([]byte,error)

typePolicyControllerResourceRequirementsadded inv0.201.0

type PolicyControllerResourceRequirements struct {// Limits: Limits describes the maximum amount of compute resources allowed for// use by the running container.Limits *PolicyControllerResourceList `json:"limits,omitempty"`// Requests: Requests describes the amount of compute resources reserved for// the container by the kube-scheduler.Requests *PolicyControllerResourceList `json:"requests,omitempty"`// ForceSendFields is a list of field names (e.g. "Limits") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Limits") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PolicyControllerResourceRequirements: ResourceRequirements describes thecompute resource requirements.

func (PolicyControllerResourceRequirements)MarshalJSONadded inv0.201.0

typePolicyControllerSpecadded inv0.201.0

type PolicyControllerSpec struct {// PolicyControllerHubConfig: Policy Controller configuration for the cluster.PolicyControllerHubConfig *PolicyControllerHubConfig `json:"policyControllerHubConfig,omitempty"`// Version: Version of Policy Controller installed.Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "PolicyControllerHubConfig")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PolicyControllerHubConfig") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PolicyControllerSpec: **Policy Controller**: Configuration for a singlecluster. Intended to parallel the PolicyController CR.

func (PolicyControllerSpec)MarshalJSONadded inv0.201.0

func (sPolicyControllerSpec) MarshalJSON() ([]byte,error)

typePolicyControllerStateadded inv0.201.0

type PolicyControllerState struct {// ComponentStates: Currently these include (also serving as map keys): 1.// "admission" 2. "audit" 3. "mutation"ComponentStates map[string]PolicyControllerOnClusterState `json:"componentStates,omitempty"`// PolicyContentState: The overall content state observed by the Hub Feature// controller.PolicyContentState *PolicyControllerPolicyContentState `json:"policyContentState,omitempty"`// State: The overall Policy Controller lifecycle state observed by the Hub// Feature controller.//// Possible values://   "LIFECYCLE_STATE_UNSPECIFIED" - The lifecycle state is unspecified.//   "NOT_INSTALLED" - The PC does not exist on the given cluster, and no k8s// resources of any type that are associated with the PC should exist there.// The cluster does not possess a membership with the PCH.//   "INSTALLING" - The PCH possesses a Membership, however the PC is not fully// installed on the cluster. In this state the hub can be expected to be taking// actions to install the PC on the cluster.//   "ACTIVE" - The PC is fully installed on the cluster and in an operational// mode. In this state PCH will be reconciling state with the PC, and the PC// will be performing it's operational tasks per that software. Entering a// READY state requires that the hub has confirmed the PC is installed and its// pods are operational with the version of the PC the PCH expects.//   "UPDATING" - The PC is fully installed, but in the process of changing the// configuration (including changing the version of PC either up and down, or// modifying the manifests of PC) of the resources running on the cluster. The// PCH has a Membership, is aware of the version the cluster should be running// in, but has not confirmed for itself that the PC is running with that// version.//   "DECOMMISSIONING" - The PC may have resources on the cluster, but the PCH// wishes to remove the Membership. The Membership still exists.//   "CLUSTER_ERROR" - The PC is not operational, and the PCH is unable to act// to make it operational. Entering a CLUSTER_ERROR state happens automatically// when the PCH determines that a PC installed on the cluster is non-operative// or that the cluster does not meet requirements set for the PCH to administer// the cluster but has nevertheless been given an instruction to do so (such as// ‘install').//   "HUB_ERROR" - In this state, the PC may still be operational, and only the// PCH is unable to act. The hub should not issue instructions to change the PC// state, or otherwise interfere with the on-cluster resources. Entering a// HUB_ERROR state happens automatically when the PCH determines the hub is in// an unhealthy state and it wishes to ‘take hands off' to avoid corrupting// the PC or other data.//   "SUSPENDED" - Policy Controller (PC) is installed but suspended. This// means that the policies are not enforced, but violations are still recorded// (through audit).//   "DETACHED" - PoCo Hub is not taking any action to reconcile cluster// objects. Changes to those objects will not be overwritten by PoCo Hub.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "ComponentStates") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ComponentStates") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PolicyControllerState: **Policy Controller**: State for a single cluster.

func (PolicyControllerState)MarshalJSONadded inv0.201.0

func (sPolicyControllerState) MarshalJSON() ([]byte,error)

typePolicyControllerTemplateLibraryConfigadded inv0.201.0

type PolicyControllerTemplateLibraryConfig struct {// Installation: Configures the manner in which the template library is// installed on the cluster.//// Possible values://   "INSTALLATION_UNSPECIFIED" - No installation strategy has been specified.//   "NOT_INSTALLED" - Do not install the template library.//   "ALL" - Install the entire template library.Installationstring `json:"installation,omitempty"`// ForceSendFields is a list of field names (e.g. "Installation") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Installation") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PolicyControllerTemplateLibraryConfig: The config specifying which defaultlibrary templates to install.

func (PolicyControllerTemplateLibraryConfig)MarshalJSONadded inv0.201.0

typePolicyControllerTolerationadded inv0.201.0

type PolicyControllerToleration struct {// Effect: Matches a taint effect.Effectstring `json:"effect,omitempty"`// Key: Matches a taint key (not necessarily unique).Keystring `json:"key,omitempty"`// Operator: Matches a taint operator.Operatorstring `json:"operator,omitempty"`// Value: Matches a taint value.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Effect") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Effect") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PolicyControllerToleration: Toleration of a node taint.

func (PolicyControllerToleration)MarshalJSONadded inv0.201.0

func (sPolicyControllerToleration) MarshalJSON() ([]byte,error)

typeProjectsLocationsGetCall

type ProjectsLocationsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGetCall)Do

Do executes the "gkehub.projects.locations.get" call.Any non-2xx status code is an error. Response headers are in either*Location.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsListCall

type ProjectsLocationsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsListCall)Do

Do executes the "gkehub.projects.locations.list" call.Any non-2xx status code is an error. Response headers are in either*ListLocationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsListCall)ExtraLocationTypesadded inv0.229.0

func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall

ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do notuse this field. It is unsupported and is ignored unless explicitlydocumented otherwise. This is primarily for internal usage.

func (*ProjectsLocationsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsListCall)Filter

Filter sets the optional parameter "filter": A filter to narrow down resultsto a preferred subset. The filtering language accepts strings like"displayName=tokyo", and is documented in more detail in AIP-160(https://google.aip.dev/160).

func (*ProjectsLocationsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofresults to return. If not set, the service selects a default.

func (*ProjectsLocationsListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token receivedfrom the `next_page_token` field in the response. Send that page token toreceive the subsequent page.

func (*ProjectsLocationsListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeProjectsLocationsMembershipsFeaturesCreateCall

type ProjectsLocationsMembershipsFeaturesCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsMembershipsFeaturesCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsMembershipsFeaturesCreateCall)Do

Do executes the "gkehub.projects.locations.memberships.features.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsMembershipsFeaturesCreateCall)FeatureIdadded inv0.201.0

FeatureId sets the optional parameter "featureId": Required. The ID of themembership_feature to create.

func (*ProjectsLocationsMembershipsFeaturesCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsMembershipsFeaturesCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsMembershipsFeaturesCreateCall)RequestId

RequestId sets the optional parameter "requestId": Idempotent request UUID.

typeProjectsLocationsMembershipsFeaturesDeleteCall

type ProjectsLocationsMembershipsFeaturesDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsMembershipsFeaturesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsMembershipsFeaturesDeleteCall)Do

Do executes the "gkehub.projects.locations.memberships.features.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsMembershipsFeaturesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsMembershipsFeaturesDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsMembershipsFeaturesDeleteCall)RequestId

RequestId sets the optional parameter "requestId": Idempotent request UUID.

typeProjectsLocationsMembershipsFeaturesGetCall

type ProjectsLocationsMembershipsFeaturesGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsMembershipsFeaturesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsMembershipsFeaturesGetCall)Do

Do executes the "gkehub.projects.locations.memberships.features.get" call.Any non-2xx status code is an error. Response headers are in either*MembershipFeature.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsMembershipsFeaturesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsMembershipsFeaturesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsMembershipsFeaturesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsMembershipsFeaturesListCall

type ProjectsLocationsMembershipsFeaturesListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsMembershipsFeaturesListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsMembershipsFeaturesListCall)Do

Do executes the "gkehub.projects.locations.memberships.features.list" call.Any non-2xx status code is an error. Response headers are in either*ListMembershipFeaturesResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsMembershipsFeaturesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsMembershipsFeaturesListCall)Filter

Filter sets the optional parameter "filter": Lists MembershipFeatures thatmatch the filter expression, following the syntax outlined inhttps://google.aip.dev/160. Examples: - Feature with the name "helloworld"in project "foo-proj" and membership "member-bar": name ="projects/foo-proj/locations/global/memberships/member-bar/features/helloworld" - Features that have a label called `foo`: labels.foo:* - Features thathave a label called `foo` whose value is `bar`: labels.foo = bar

func (*ProjectsLocationsMembershipsFeaturesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsMembershipsFeaturesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsMembershipsFeaturesListCall)OrderBy

OrderBy sets the optional parameter "orderBy": One or more fields to compareand use to sort the output. Seehttps://google.aip.dev/132#ordering.

func (*ProjectsLocationsMembershipsFeaturesListCall)PageSize

PageSize sets the optional parameter "pageSize": When requesting a 'page' ofresources, `page_size` specifies number of resources to return. Ifunspecified or set to 0, all resources will be returned.

func (*ProjectsLocationsMembershipsFeaturesListCall)PageToken

PageToken sets the optional parameter "pageToken": Token returned byprevious call to `ListFeatures` which specifies the position in the listfrom where to continue listing the resources.

func (*ProjectsLocationsMembershipsFeaturesListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeProjectsLocationsMembershipsFeaturesPatchCall

type ProjectsLocationsMembershipsFeaturesPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsMembershipsFeaturesPatchCall)AllowMissingadded inv0.201.0

AllowMissing sets the optional parameter "allowMissing": If set to true, andthe MembershipFeature is not found, a new MembershipFeature will be created.In this situation, `update_mask` is ignored.

func (*ProjectsLocationsMembershipsFeaturesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsMembershipsFeaturesPatchCall)Do

Do executes the "gkehub.projects.locations.memberships.features.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsMembershipsFeaturesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsMembershipsFeaturesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsMembershipsFeaturesPatchCall)RequestId

RequestId sets the optional parameter "requestId": Idempotent request UUID.

func (*ProjectsLocationsMembershipsFeaturesPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": Required. Mask offields to update.

typeProjectsLocationsMembershipsFeaturesService

type ProjectsLocationsMembershipsFeaturesService struct {// contains filtered or unexported fields}

func (*ProjectsLocationsMembershipsFeaturesService)Create

Create: Creates membershipFeature under a given parent.

  • parent: The name of parent where the MembershipFeature will be created.Specified in the format `projects/*/locations/*/memberships/*`.

func (*ProjectsLocationsMembershipsFeaturesService)Delete

Delete: Removes a membershipFeature.

  • name: The name of the membershipFeature to be deleted. Specified in theformat `projects/*/locations/*/memberships/*/features/*`.

func (*ProjectsLocationsMembershipsFeaturesService)Get

Get: ========= MembershipFeature Services ========= Gets details of amembershipFeature.

  • name: The MembershipFeature resource name in the format`projects/*/locations/*/memberships/*/features/*`.

func (*ProjectsLocationsMembershipsFeaturesService)List

List: Lists MembershipFeatures in a given project and location.

  • parent: The parent where the MembershipFeature will be listed. In theformat: `projects/*/locations/*/memberships/*`.

func (*ProjectsLocationsMembershipsFeaturesService)Patch

Patch: Updates an existing MembershipFeature.

  • name: Output only. The resource name of the membershipFeature, in theformat:`projects/{project}/locations/{location}/memberships/{membership}/features/{feature}`. Note that `membershipFeatures` is shortened to `features` inthe resource name. (seehttp://go/aip/122#collection-identifiers).

typeProjectsLocationsMembershipsService

type ProjectsLocationsMembershipsService struct {Features *ProjectsLocationsMembershipsFeaturesService// contains filtered or unexported fields}

typeProjectsLocationsOperationsCancelCall

type ProjectsLocationsOperationsCancelCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsOperationsCancelCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsCancelCall)Do

Do executes the "gkehub.projects.locations.operations.cancel" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsCancelCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsCancelCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsOperationsGetCall

type ProjectsLocationsOperationsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsOperationsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsGetCall)Do

Do executes the "gkehub.projects.locations.operations.get" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsOperationsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsOperationsListCall

type ProjectsLocationsOperationsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsOperationsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsListCall)Do

Do executes the "gkehub.projects.locations.operations.list" call.Any non-2xx status code is an error. Response headers are in either*ListOperationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsOperationsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsListCall)Filter

Filter sets the optional parameter "filter": The standard list filter.

func (*ProjectsLocationsOperationsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsOperationsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsOperationsListCall)PageSize

PageSize sets the optional parameter "pageSize": The standard list pagesize.

func (*ProjectsLocationsOperationsListCall)PageToken

PageToken sets the optional parameter "pageToken": The standard list pagetoken.

func (*ProjectsLocationsOperationsListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

func (*ProjectsLocationsOperationsListCall)ReturnPartialSuccessadded inv0.252.0

func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccessbool) *ProjectsLocationsOperationsListCall

ReturnPartialSuccess sets the optional parameter "returnPartialSuccess":When set to `true`, operations that are reachable are returned as normal,and those that are unreachable are returned in the[ListOperationsResponse.unreachable] field. This can only be `true` whenreading across collections e.g. when `parent` is set to"projects/example/locations/-". This field is not by default supported andwill result in an `UNIMPLEMENTED` error if set unless explicitly documentedotherwise in service or product specific documentation.

typeProjectsLocationsOperationsService

type ProjectsLocationsOperationsService struct {// contains filtered or unexported fields}

func (*ProjectsLocationsOperationsService)Cancel

Cancel: Starts asynchronous cancellation on a long-running operation. Theserver makes a best effort to cancel the operation, but success is notguaranteed. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation orother methods to check whether the cancellation succeeded or whether theoperation completed despite cancellation. On successful cancellation, theoperation is not deleted; instead, it becomes an operation with anOperation.error value with a google.rpc.Status.code of `1`, corresponding to`Code.CANCELLED`.

- name: The name of the operation resource to be cancelled.

func (*ProjectsLocationsOperationsService)Get

Get: Gets the latest state of a long-running operation. Clients can use thismethod to poll the operation result at intervals as recommended by the APIservice.

- name: The name of the operation resource.

func (*ProjectsLocationsOperationsService)List

List: Lists operations that match the specified filter in the request. Ifthe server doesn't support this method, it returns `UNIMPLEMENTED`.

- name: The name of the operation's parent resource.

typeProjectsLocationsService

type ProjectsLocationsService struct {Memberships *ProjectsLocationsMembershipsServiceOperations *ProjectsLocationsOperationsService// contains filtered or unexported fields}

funcNewProjectsLocationsService

func NewProjectsLocationsService(s *Service) *ProjectsLocationsService

func (*ProjectsLocationsService)Get

Get: Gets information about a location.

- name: Resource name for the location.

func (*ProjectsLocationsService)List

List: Lists information about the supported locations for this service.

- name: The resource that owns the locations collection, if applicable.

typeProjectsService

type ProjectsService struct {Locations *ProjectsLocationsService// contains filtered or unexported fields}

funcNewProjectsService

func NewProjectsService(s *Service) *ProjectsService

typeRBACRoleBindingActuationRBACRoleBindingStateadded inv0.230.0

type RBACRoleBindingActuationRBACRoleBindingState struct {// Description: The reason for the failure.Descriptionstring `json:"description,omitempty"`// State: Output only. The state of the RBACRoleBinding.//// Possible values://   "ROLE_BINDING_STATE_UNSPECIFIED" - Unspecified state.//   "OK" - RBACRoleBinding is created properly on the cluster.//   "CUSTOM_ROLE_MISSING_FROM_CLUSTER" - The RBACRoleBinding was created on// the cluster but the specified custom role does not exist on the cluster,// hence the RBACRoleBinding has no effect.Statestring `json:"state,omitempty"`// UpdateTime: The time the RBACRoleBinding status was last updated.UpdateTimestring `json:"updateTime,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RBACRoleBindingActuationRBACRoleBindingState: RBACRoleBindingState is thestatus of an RBACRoleBinding which exists on a membership.

func (RBACRoleBindingActuationRBACRoleBindingState)MarshalJSONadded inv0.230.0

typeRBACRoleBindingActuationSpecadded inv0.230.0

type RBACRoleBindingActuationSpec struct {}

RBACRoleBindingActuationSpec: **RBAC RoleBinding Actuation**: Themembership-specific input for RBACRoleBindingActuation feature.

typeRBACRoleBindingActuationStateadded inv0.230.0

type RBACRoleBindingActuationState struct {// RbacrolebindingStates: Output only. The state of RBACRoleBindings using// custom roles that exist on the cluster, keyed by RBACRoleBinding resource// name with format:// projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbac// rolebinding}.RbacrolebindingStates map[string]RBACRoleBindingActuationRBACRoleBindingState `json:"rbacrolebindingStates,omitempty"`// ForceSendFields is a list of field names (e.g. "RbacrolebindingStates") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RbacrolebindingStates") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RBACRoleBindingActuationState: **RBAC RoleBinding Actuation**: Amembership-specific Feature state for the RBACRoleBindingActuation fleetfeature.

func (RBACRoleBindingActuationState)MarshalJSONadded inv0.230.0

func (sRBACRoleBindingActuationState) MarshalJSON() ([]byte,error)

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentProjects *ProjectsService// contains filtered or unexported fields}

funcNewdeprecated

func New(client *http.Client) (*Service,error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

funcNewService

func NewService(ctxcontext.Context, opts ...option.ClientOption) (*Service,error)

NewService creates a new Service.

typeServiceMeshAnalysisMessageadded inv0.201.0

type ServiceMeshAnalysisMessage struct {// Args: A UI can combine these args with a template (based on// message_base.type) to produce an internationalized message.Argsgoogleapi.RawMessage `json:"args,omitempty"`// Description: A human readable description of what the error means. It is// suitable for non-internationalize display purposes.Descriptionstring `json:"description,omitempty"`// MessageBase: Details common to all types of Istio and ServiceMesh analysis// messages.MessageBase *ServiceMeshAnalysisMessageBase `json:"messageBase,omitempty"`// ResourcePaths: A list of strings specifying the resource identifiers that// were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID// if the cause is a specific member cluster *// MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in// a clusterResourcePaths []string `json:"resourcePaths,omitempty"`// ForceSendFields is a list of field names (e.g. "Args") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Args") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ServiceMeshAnalysisMessage: AnalysisMessage is a single message produced byan analyzer, and it used to communicate to the end user about the state oftheir Service Mesh configuration.

func (ServiceMeshAnalysisMessage)MarshalJSONadded inv0.201.0

func (sServiceMeshAnalysisMessage) MarshalJSON() ([]byte,error)

typeServiceMeshAnalysisMessageBaseadded inv0.201.0

type ServiceMeshAnalysisMessageBase struct {// DocumentationUrl: A url pointing to the Service Mesh or Istio documentation// for this specific error type.DocumentationUrlstring `json:"documentationUrl,omitempty"`// Level: Represents how severe a message is.//// Possible values://   "LEVEL_UNSPECIFIED" - Illegal. Same// istio.analysis.v1alpha1.AnalysisMessageBase.Level.UNKNOWN.//   "ERROR" - ERROR represents a misconfiguration that must be fixed.//   "WARNING" - WARNING represents a misconfiguration that should be fixed.//   "INFO" - INFO represents an informational finding.Levelstring `json:"level,omitempty"`// Type: Represents the specific type of a message.Type *ServiceMeshType `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "DocumentationUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DocumentationUrl") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ServiceMeshAnalysisMessageBase: AnalysisMessageBase describes some commoninformation that is needed for all messages.

func (ServiceMeshAnalysisMessageBase)MarshalJSONadded inv0.201.0

func (sServiceMeshAnalysisMessageBase) MarshalJSON() ([]byte,error)

typeServiceMeshConditionadded inv0.201.0

type ServiceMeshCondition struct {// Code: Unique identifier of the condition which describes the condition// recognizable to the user.//// Possible values://   "CODE_UNSPECIFIED" - Default Unspecified code//   "MESH_IAM_PERMISSION_DENIED" - Mesh IAM permission denied error code//   "MESH_IAM_CROSS_PROJECT_PERMISSION_DENIED" - Permission denied error code// for cross-project//   "CNI_CONFIG_UNSUPPORTED" - CNI config unsupported error code//   "GKE_SANDBOX_UNSUPPORTED" - GKE sandbox unsupported error code//   "NODEPOOL_WORKLOAD_IDENTITY_FEDERATION_REQUIRED" - Nodepool workload// identity federation required error code//   "CNI_INSTALLATION_FAILED" - CNI installation failed error code//   "CNI_POD_UNSCHEDULABLE" - CNI pod unschedulable error code//   "CLUSTER_HAS_ZERO_NODES" - Cluster has zero node code//   "CANONICAL_SERVICE_ERROR" - Failure to reconcile CanonicalServices//   "UNSUPPORTED_MULTIPLE_CONTROL_PLANES" - Multiple control planes// unsupported error code//   "VPCSC_GA_SUPPORTED" - VPC-SC GA is supported for this control plane.//   "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT" - User is using deprecated// ControlPlaneManagement and they have not yet set Management.//   "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT_SAFE" - User is using deprecated// ControlPlaneManagement and they have already set Management.//   "CONFIG_APPLY_INTERNAL_ERROR" - Configuration (Istio/k8s resources) failed// to apply due to internal error.//   "CONFIG_VALIDATION_ERROR" - Configuration failed to be applied due to// being invalid.//   "CONFIG_VALIDATION_WARNING" - Encountered configuration(s) with possible// unintended behavior or invalid configuration. These configs may not have// been applied.//   "QUOTA_EXCEEDED_BACKEND_SERVICES" - BackendService quota exceeded error// code.//   "QUOTA_EXCEEDED_HEALTH_CHECKS" - HealthCheck quota exceeded error code.//   "QUOTA_EXCEEDED_HTTP_ROUTES" - HTTPRoute quota exceeded error code.//   "QUOTA_EXCEEDED_TCP_ROUTES" - TCPRoute quota exceeded error code.//   "QUOTA_EXCEEDED_TLS_ROUTES" - TLS routes quota exceeded error code.//   "QUOTA_EXCEEDED_TRAFFIC_POLICIES" - TrafficPolicy quota exceeded error// code.//   "QUOTA_EXCEEDED_ENDPOINT_POLICIES" - EndpointPolicy quota exceeded error// code.//   "QUOTA_EXCEEDED_GATEWAYS" - Gateway quota exceeded error code.//   "QUOTA_EXCEEDED_MESHES" - Mesh quota exceeded error code.//   "QUOTA_EXCEEDED_SERVER_TLS_POLICIES" - ServerTLSPolicy quota exceeded// error code.//   "QUOTA_EXCEEDED_CLIENT_TLS_POLICIES" - ClientTLSPolicy quota exceeded// error code.//   "QUOTA_EXCEEDED_SERVICE_LB_POLICIES" - ServiceLBPolicy quota exceeded// error code.//   "QUOTA_EXCEEDED_HTTP_FILTERS" - HTTPFilter quota exceeded error code.//   "QUOTA_EXCEEDED_TCP_FILTERS" - TCPFilter quota exceeded error code.//   "QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS" - NetworkEndpointGroup quota// exceeded error code.//   "LEGACY_MC_SECRETS" - Legacy istio secrets found for multicluster error// code//   "WORKLOAD_IDENTITY_REQUIRED" - Workload identity required error code//   "NON_STANDARD_BINARY_USAGE" - Non-standard binary usage error code//   "UNSUPPORTED_GATEWAY_CLASS" - Unsupported gateway class error code//   "MANAGED_CNI_NOT_ENABLED" - Managed CNI not enabled error code//   "MODERNIZATION_SCHEDULED" - Modernization is scheduled for a cluster.//   "MODERNIZATION_IN_PROGRESS" - Modernization is in progress for a cluster.//   "MODERNIZATION_COMPLETED" - Modernization is completed for a cluster.//   "MODERNIZATION_ABORTED" - Modernization is aborted for a cluster.//   "MODERNIZATION_PREPARING" - Preparing cluster so that its workloads can be// migrated.//   "MODERNIZATION_STALLED" - Modernization is stalled for a cluster.//   "MODERNIZATION_PREPARED" - Cluster has been prepared for its workloads to// be migrated.//   "MODERNIZATION_MIGRATING_WORKLOADS" - Migrating the cluster's workloads to// the new implementation.//   "MODERNIZATION_ROLLING_BACK_CLUSTER" - Rollback is in progress for// modernization of a cluster.//   "MODERNIZATION_WILL_BE_SCHEDULED" - Modernization will be scheduled for a// fleet.//   "MODERNIZATION_MANUAL" - Fleet is opted out from automated modernization.//   "MODERNIZATION_ELIGIBLE" - Fleet is eligible for modernization.//   "MODERNIZATION_MODERNIZING" - Modernization of one or more clusters in a// fleet is in progress.//   "MODERNIZATION_MODERNIZED_SOAKING" - Modernization of all the fleet's// clusters is complete. Soaking before finalizing the modernization.//   "MODERNIZATION_FINALIZED" - Modernization is finalized for all clusters in// a fleet. Rollback is no longer allowed.//   "MODERNIZATION_ROLLING_BACK_FLEET" - Rollback is in progress for// modernization of all clusters in a fleet.Codestring `json:"code,omitempty"`// Details: A short summary about the issue.Detailsstring `json:"details,omitempty"`// DocumentationLink: Links contains actionable information.DocumentationLinkstring `json:"documentationLink,omitempty"`// Severity: Severity level of the condition.//// Possible values://   "SEVERITY_UNSPECIFIED" - Unspecified severity//   "ERROR" - Indicates an issue that prevents the mesh from operating// correctly//   "WARNING" - Indicates a setting is likely wrong, but the mesh is still// able to operate//   "INFO" - An informational message, not requiring any actionSeveritystring `json:"severity,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ServiceMeshCondition: Condition being reported.

func (ServiceMeshCondition)MarshalJSONadded inv0.201.0

func (sServiceMeshCondition) MarshalJSON() ([]byte,error)

typeServiceMeshControlPlaneManagementadded inv0.201.0

type ServiceMeshControlPlaneManagement struct {// Details: Explanation of state.Details []*ServiceMeshStatusDetails `json:"details,omitempty"`// Implementation: Output only. Implementation of managed control plane.//// Possible values://   "IMPLEMENTATION_UNSPECIFIED" - Unspecified//   "ISTIOD" - A Google build of istiod is used for the managed control plane.//   "TRAFFIC_DIRECTOR" - Traffic director is used for the managed control// plane.//   "UPDATING" - The control plane implementation is being updated.Implementationstring `json:"implementation,omitempty"`// State: LifecycleState of control plane management.//// Possible values://   "LIFECYCLE_STATE_UNSPECIFIED" - Unspecified//   "DISABLED" - DISABLED means that the component is not enabled.//   "FAILED_PRECONDITION" - FAILED_PRECONDITION means that provisioning cannot// proceed because of some characteristic of the member cluster.//   "PROVISIONING" - PROVISIONING means that provisioning is in progress.//   "ACTIVE" - ACTIVE means that the component is ready for use.//   "STALLED" - STALLED means that provisioning could not be done.//   "NEEDS_ATTENTION" - NEEDS_ATTENTION means that the component is ready, but// some user intervention is required. (For example that the user should// migrate workloads to a new control plane revision.)//   "DEGRADED" - DEGRADED means that the component is ready, but operating in// a degraded state.//   "DEPROVISIONING" - DEPROVISIONING means that deprovisioning is in// progress.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "Details") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Details") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ServiceMeshControlPlaneManagement: Status of control plane management.

func (ServiceMeshControlPlaneManagement)MarshalJSONadded inv0.201.0

func (sServiceMeshControlPlaneManagement) MarshalJSON() ([]byte,error)

typeServiceMeshDataPlaneManagementadded inv0.201.0

type ServiceMeshDataPlaneManagement struct {// Details: Explanation of the status.Details []*ServiceMeshStatusDetails `json:"details,omitempty"`// State: Lifecycle status of data plane management.//// Possible values://   "LIFECYCLE_STATE_UNSPECIFIED" - Unspecified//   "DISABLED" - DISABLED means that the component is not enabled.//   "FAILED_PRECONDITION" - FAILED_PRECONDITION means that provisioning cannot// proceed because of some characteristic of the member cluster.//   "PROVISIONING" - PROVISIONING means that provisioning is in progress.//   "ACTIVE" - ACTIVE means that the component is ready for use.//   "STALLED" - STALLED means that provisioning could not be done.//   "NEEDS_ATTENTION" - NEEDS_ATTENTION means that the component is ready, but// some user intervention is required. (For example that the user should// migrate workloads to a new control plane revision.)//   "DEGRADED" - DEGRADED means that the component is ready, but operating in// a degraded state.//   "DEPROVISIONING" - DEPROVISIONING means that deprovisioning is in// progress.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "Details") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Details") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ServiceMeshDataPlaneManagement: Status of data plane management. Onlyreported per-member.

func (ServiceMeshDataPlaneManagement)MarshalJSONadded inv0.201.0

func (sServiceMeshDataPlaneManagement) MarshalJSON() ([]byte,error)

typeServiceMeshSpecadded inv0.201.0

type ServiceMeshSpec struct {// ConfigApi: Optional. Specifies the API that will be used for configuring the// mesh workloads.//// Possible values://   "CONFIG_API_UNSPECIFIED" - Unspecified//   "CONFIG_API_ISTIO" - Use the Istio API for configuration.//   "CONFIG_API_GATEWAY" - Use the K8s Gateway API for configuration.ConfigApistring `json:"configApi,omitempty"`// ControlPlane: Deprecated: use `management` instead Enables automatic control// plane management.//// Possible values://   "CONTROL_PLANE_MANAGEMENT_UNSPECIFIED" - Unspecified//   "AUTOMATIC" - Google should provision a control plane revision and make it// available in the cluster. Google will enroll this revision in a release// channel and keep it up to date. The control plane revision may be a managed// service, or a managed install.//   "MANUAL" - User will manually configure the control plane (e.g. via CLI,// or via the ControlPlaneRevision KRM API)ControlPlanestring `json:"controlPlane,omitempty"`// DefaultChannel: Determines which release channel to use for default// injection and service mesh APIs.//// Possible values://   "CHANNEL_UNSPECIFIED" - Unspecified//   "RAPID" - RAPID channel is offered on an early access basis for customers// who want to test new releases.//   "REGULAR" - REGULAR channel is intended for production users who want to// take advantage of new features.//   "STABLE" - STABLE channel includes versions that are known to be stable// and reliable in production.DefaultChannelstring `json:"defaultChannel,omitempty"`// Management: Optional. Enables automatic Service Mesh management.//// Possible values://   "MANAGEMENT_UNSPECIFIED" - Unspecified.//   "MANAGEMENT_AUTOMATIC" - Google should manage my Service Mesh for the// cluster.//   "MANAGEMENT_MANUAL" - User will manually configure their service mesh// components.//   "MANAGEMENT_NOT_INSTALLED" - Google should remove any managed Service Mesh// components from this cluster and deprovision any resources.Managementstring `json:"management,omitempty"`// ForceSendFields is a list of field names (e.g. "ConfigApi") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConfigApi") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ServiceMeshSpec: **Service Mesh**: Spec for a single Membership for theservicemesh feature

func (ServiceMeshSpec)MarshalJSONadded inv0.201.0

func (sServiceMeshSpec) MarshalJSON() ([]byte,error)

typeServiceMeshStateadded inv0.201.0

type ServiceMeshState struct {// AnalysisMessages: Output only. Results of running Service Mesh analyzers.AnalysisMessages []*ServiceMeshAnalysisMessage `json:"analysisMessages,omitempty"`// Conditions: Output only. List of conditions reported for this membership.Conditions []*ServiceMeshCondition `json:"conditions,omitempty"`// ConfigApiVersion: The API version (i.e. Istio CRD version) for configuring// service mesh in this cluster. This version is influenced by the// `default_channel` field.ConfigApiVersionstring `json:"configApiVersion,omitempty"`// ControlPlaneManagement: Output only. Status of control plane managementControlPlaneManagement *ServiceMeshControlPlaneManagement `json:"controlPlaneManagement,omitempty"`// DataPlaneManagement: Output only. Status of data plane management.DataPlaneManagement *ServiceMeshDataPlaneManagement `json:"dataPlaneManagement,omitempty"`// ForceSendFields is a list of field names (e.g. "AnalysisMessages") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnalysisMessages") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ServiceMeshState: **Service Mesh**: State for a single Membership, asanalyzed by the Service Mesh Hub Controller.

func (ServiceMeshState)MarshalJSONadded inv0.201.0

func (sServiceMeshState) MarshalJSON() ([]byte,error)

typeServiceMeshStatusDetailsadded inv0.201.0

type ServiceMeshStatusDetails struct {// Code: A machine-readable code that further describes a broad status.Codestring `json:"code,omitempty"`// Details: Human-readable explanation of code.Detailsstring `json:"details,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ServiceMeshStatusDetails: Structured and human-readable details for astatus.

func (ServiceMeshStatusDetails)MarshalJSONadded inv0.201.0

func (sServiceMeshStatusDetails) MarshalJSON() ([]byte,error)

typeServiceMeshTypeadded inv0.201.0

type ServiceMeshType struct {// Code: A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`,// intended to uniquely identify the message type. (e.g. "IST0001" is mapped to// the "InternalError" message type.)Codestring `json:"code,omitempty"`// DisplayName: A human-readable name for the message type. e.g.// "InternalError", "PodMissingProxy". This should be the same for all messages// of the same type. (This corresponds to the `name` field in open-source// Istio.)DisplayNamestring `json:"displayName,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ServiceMeshType: A unique identifier for the type of message. Display_nameis intended to be human-readable, code is intended to be machine readable.There should be a one-to-one mapping between display_name and code. (i.e. donot re-use display_names or codes between message types.) Seeistio.analysis.v1alpha1.AnalysisMessageBase.Type

func (ServiceMeshType)MarshalJSONadded inv0.201.0

func (sServiceMeshType) MarshalJSON() ([]byte,error)

typeState

type State struct {// Code: The high-level, machine-readable status of this MembershipFeature.//// Possible values://   "CODE_UNSPECIFIED" - Unknown or not set.//   "OK" - The MembershipFeature is operating normally.//   "WARNING" - The MembershipFeature has encountered an issue, and is// operating in a degraded state. The MembershipFeature may need intervention// to return to normal operation. See the description and any associated// MembershipFeature-specific details for more information.//   "ERROR" - The MembershipFeature is not operating or is in a severely// degraded state. The MembershipFeature may need intervention to return to// normal operation. See the description and any associated// MembershipFeature-specific details for more information.Codestring `json:"code,omitempty"`// Description: A human-readable description of the current status.Descriptionstring `json:"description,omitempty"`// UpdateTime: The time this status and any related Feature-specific details// were updated.UpdateTimestring `json:"updateTime,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

State: High-level state of a MembershipFeature.

func (State)MarshalJSON

func (sState) MarshalJSON() ([]byte,error)

typeWorkloadCertificateSpecadded inv0.201.0

type WorkloadCertificateSpec struct {// CertificateManagement: CertificateManagement specifies workload certificate// management.//// Possible values://   "CERTIFICATE_MANAGEMENT_UNSPECIFIED" - Disable workload certificate// feature.//   "DISABLED" - Disable workload certificate feature.//   "ENABLED" - Enable workload certificate feature.CertificateManagementstring `json:"certificateManagement,omitempty"`// ForceSendFields is a list of field names (e.g. "CertificateManagement") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CertificateManagement") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

WorkloadCertificateSpec: **WorkloadCertificate**: The membership-specificinput for WorkloadCertificate feature.

func (WorkloadCertificateSpec)MarshalJSONadded inv0.201.0

func (sWorkloadCertificateSpec) MarshalJSON() ([]byte,error)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp