# Package google.cloud.gkehub.servicemesh.v2

## Index

- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.AnalysisMessage` (message)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.AnalysisMessageBase` (message)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.AnalysisMessageBase.Level` (enum)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.AnalysisMessageBase.Type` (message)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.Channel` (enum)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.Spec` (message)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.Spec.ConfigApi` (enum)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.Spec.ControlPlaneManagement` (enum)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.Spec.Management` (enum)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State` (message)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.Condition` (message)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.Condition.Code` (enum)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.Condition.Severity` (enum)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.ControlPlaneManagement` (message)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.ControlPlaneManagement.Implementation` (enum)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.DataPlaneManagement` (message)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.LifecycleState` (enum)
- `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.StatusDetails` (message)

## AnalysisMessage

AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration.

| Fields ||
|---|---|
| `message_base` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.AnalysisMessageBase` Details common to all types of Istio and ServiceMesh analysis messages. |
| `description` | `string` A human readable description of what the error means. It is suitable for non-internationalize display purposes. |
| `resource_paths[]` | `string` 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 cluster |
| `args` | `https://protobuf.dev/reference/protobuf/google.protobuf#struct` A UI can combine these args with a template (based on message_base.type) to produce an internationalized message. |

## AnalysisMessageBase

AnalysisMessageBase describes some common information that is needed for all messages.

| Fields ||
|---|---|
| `type` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.AnalysisMessageBase.Type` Represents the specific type of a message. |
| `level` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.AnalysisMessageBase.Level` Represents how severe a message is. |
| `documentation_url` | `string` A url pointing to the Service Mesh or Istio documentation for this specific error type. |

## Level

The values here are chosen so that more severe messages get sorted higher, as well as leaving space in between to add more later See istio.analysis.v1alpha1.AnalysisMessageBase.Level

| Enums ||
|---|---|
| `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. |

## Type

A unique identifier for the type of message. Display_name is 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. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type

| Fields ||
|---|---|
| `display_name` | `string` 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.) |
| `code` | `string` 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.) |

## Channel

Channel indicates which release channel a revision is subscribed to. Release channels are arranged in order of risk.

| Enums ||
|---|---|
| `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. |

## Spec

**Service Mesh**: Spec for a single Membership for the servicemesh feature

| Fields ||
|---|---|
| `control_plane (deprecated)` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.Spec.ControlPlaneManagement` > [!WARNING] > This item is deprecated! Deprecated: use `management` instead Enables automatic control plane management. |
| `default_channel (deprecated)` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.Channel` > [!WARNING] > This item is deprecated! Determines which release channel to use for default injection and service mesh APIs. |
| `management` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.Spec.Management` Optional. Enables automatic Service Mesh management. |
| `config_api` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.Spec.ConfigApi` Optional. Specifies the API that will be used for configuring the mesh workloads. |

## ConfigApi

Specifies the API that will be used for configuring the mesh workloads.

| Enums ||
|---|---|
| `CONFIG_API_UNSPECIFIED` | Unspecified |
| `CONFIG_API_ISTIO` | Use the Istio API for configuration. |
| `CONFIG_API_GATEWAY` | Use the K8s Gateway API for configuration. |

## ControlPlaneManagement

Whether to automatically manage Service Mesh control planes.

| Enums ||
|---|---|
| `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) |

## Management

Whether to automatically manage Service Mesh.

| Enums ||
|---|---|
| `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. |

## State

**Service Mesh**: State for a single Membership, as analyzed by the Service Mesh Hub Controller.

| Fields ||
|---|---|
| `analysis_messages[]` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.AnalysisMessage` Output only. Results of running Service Mesh analyzers. |
| `control_plane_management` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.ControlPlaneManagement` Output only. Status of control plane management |
| `data_plane_management` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.DataPlaneManagement` Output only. Status of data plane management. |
| `config_api_version` | `string` The API version (i.e. Istio CRD version) for configuring service mesh in this cluster. This version is influenced by the `default_channel` field. |
| `conditions[]` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.Condition` Output only. List of conditions reported for this membership. |

## Condition

Condition being reported.

| Fields ||
|---|---|
| `code` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.Condition.Code` Unique identifier of the condition which describes the condition recognizable to the user. |
| `documentation_link` | `string` Links contains actionable information. |
| `details` | `string` A short summary about the issue. |
| `severity` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.Condition.Severity` Severity level of the condition. |

## Code

Unique identifier of the condition which describes the condition recognizable to the user.

| Enums ||
|---|---|
| `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. |

## Severity

Severity level of the reported condition

| Enums ||
|---|---|
| `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 action |

## ControlPlaneManagement

Status of control plane management.

| Fields ||
|---|---|
| `details[]` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.StatusDetails` Explanation of state. |
| `state` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.LifecycleState` LifecycleState of control plane management. |
| `implementation` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.ControlPlaneManagement.Implementation` Output only. Implementation of managed control plane. |

## Implementation

Implementation of managed control plane.

| Enums ||
|---|---|
| `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. |

## DataPlaneManagement

Status of data plane management. Only reported per-member.

| Fields ||
|---|---|
| `state` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.State.LifecycleState` Lifecycle status of data plane management. |
| `details[]` | `https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/reference/rpc/google.cloud.gkehub.servicemesh.v2#google.cloud.gkehub.servicemesh.v2.StatusDetails` Explanation of the status. |

## LifecycleState

Lifecycle state of Service Mesh components.

| Enums ||
|---|---|
| `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. |

## StatusDetails

Structured and human-readable details for a status.

| Fields ||
|---|---|
| `code` | `string` A machine-readable code that further describes a broad status. |
| `details` | `string` Human-readable explanation of code. |