1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527
// This file is @generated by prost-build.
/// **Service Mesh**: Spec for a single Membership for the servicemesh feature
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MembershipSpec {
/// Deprecated: use `management` instead
/// Enables automatic control plane management.
#[deprecated]
#[prost(enumeration = "membership_spec::ControlPlaneManagement", tag = "1")]
pub control_plane: i32,
/// Enables automatic Service Mesh management.
#[prost(enumeration = "membership_spec::Management", tag = "4")]
pub management: i32,
}
/// Nested message and enum types in `MembershipSpec`.
pub mod membership_spec {
/// Whether to automatically manage Service Mesh control planes.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ControlPlaneManagement {
/// Unspecified
Unspecified = 0,
/// 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.
Automatic = 1,
/// User will manually configure the control plane (e.g. via CLI, or via the
/// ControlPlaneRevision KRM API)
Manual = 2,
}
impl ControlPlaneManagement {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ControlPlaneManagement::Unspecified => {
"CONTROL_PLANE_MANAGEMENT_UNSPECIFIED"
}
ControlPlaneManagement::Automatic => "AUTOMATIC",
ControlPlaneManagement::Manual => "MANUAL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CONTROL_PLANE_MANAGEMENT_UNSPECIFIED" => Some(Self::Unspecified),
"AUTOMATIC" => Some(Self::Automatic),
"MANUAL" => Some(Self::Manual),
_ => None,
}
}
}
/// Whether to automatically manage Service Mesh.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Management {
/// Unspecified
Unspecified = 0,
/// Google should manage my Service Mesh for the cluster.
Automatic = 1,
/// User will manually configure their service mesh components.
Manual = 2,
}
impl Management {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Management::Unspecified => "MANAGEMENT_UNSPECIFIED",
Management::Automatic => "MANAGEMENT_AUTOMATIC",
Management::Manual => "MANAGEMENT_MANUAL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"MANAGEMENT_UNSPECIFIED" => Some(Self::Unspecified),
"MANAGEMENT_AUTOMATIC" => Some(Self::Automatic),
"MANAGEMENT_MANUAL" => Some(Self::Manual),
_ => None,
}
}
}
}
/// **Service Mesh**: State for a single Membership, as analyzed by the Service
/// Mesh Hub Controller.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MembershipState {
/// Output only. Status of control plane management
#[prost(message, optional, tag = "2")]
pub control_plane_management: ::core::option::Option<
membership_state::ControlPlaneManagement,
>,
/// Output only. Status of data plane management.
#[prost(message, optional, tag = "4")]
pub data_plane_management: ::core::option::Option<
membership_state::DataPlaneManagement,
>,
/// Output only. List of conditions reported for this membership.
#[prost(message, repeated, tag = "8")]
pub conditions: ::prost::alloc::vec::Vec<membership_state::Condition>,
}
/// Nested message and enum types in `MembershipState`.
pub mod membership_state {
/// Status of control plane management.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ControlPlaneManagement {
/// Explanation of state.
#[prost(message, repeated, tag = "2")]
pub details: ::prost::alloc::vec::Vec<super::StatusDetails>,
/// LifecycleState of control plane management.
#[prost(enumeration = "LifecycleState", tag = "3")]
pub state: i32,
/// Output only. Implementation of managed control plane.
#[prost(enumeration = "control_plane_management::Implementation", tag = "4")]
pub implementation: i32,
}
/// Nested message and enum types in `ControlPlaneManagement`.
pub mod control_plane_management {
/// Implementation of managed control plane.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Implementation {
/// Unspecified
Unspecified = 0,
/// A Google build of istiod is used for the managed control plane.
Istiod = 1,
/// Traffic director is used for the managed control plane.
TrafficDirector = 2,
/// The control plane implementation is being updated.
Updating = 3,
}
impl Implementation {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Implementation::Unspecified => "IMPLEMENTATION_UNSPECIFIED",
Implementation::Istiod => "ISTIOD",
Implementation::TrafficDirector => "TRAFFIC_DIRECTOR",
Implementation::Updating => "UPDATING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"IMPLEMENTATION_UNSPECIFIED" => Some(Self::Unspecified),
"ISTIOD" => Some(Self::Istiod),
"TRAFFIC_DIRECTOR" => Some(Self::TrafficDirector),
"UPDATING" => Some(Self::Updating),
_ => None,
}
}
}
}
/// Status of data plane management. Only reported per-member.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataPlaneManagement {
/// Lifecycle status of data plane management.
#[prost(enumeration = "LifecycleState", tag = "1")]
pub state: i32,
/// Explanation of the status.
#[prost(message, repeated, tag = "2")]
pub details: ::prost::alloc::vec::Vec<super::StatusDetails>,
}
/// Condition being reported.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Condition {
/// Unique identifier of the condition which describes the condition
/// recognizable to the user.
#[prost(enumeration = "condition::Code", tag = "1")]
pub code: i32,
/// Links contains actionable information.
#[prost(string, tag = "2")]
pub documentation_link: ::prost::alloc::string::String,
/// A short summary about the issue.
#[prost(string, tag = "3")]
pub details: ::prost::alloc::string::String,
/// Severity level of the condition.
#[prost(enumeration = "condition::Severity", tag = "4")]
pub severity: i32,
}
/// Nested message and enum types in `Condition`.
pub mod condition {
/// Unique identifier of the condition which describes the condition
/// recognizable to the user.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Code {
/// Default Unspecified code
Unspecified = 0,
/// Mesh IAM permission denied error code
MeshIamPermissionDenied = 100,
/// CNI config unsupported error code
CniConfigUnsupported = 201,
/// GKE sandbox unsupported error code
GkeSandboxUnsupported = 202,
/// Nodepool workload identity federation required error code
NodepoolWorkloadIdentityFederationRequired = 203,
/// CNI installation failed error code
CniInstallationFailed = 204,
/// CNI pod unschedulable error code
CniPodUnschedulable = 205,
/// Multiple control planes unsupported error code
UnsupportedMultipleControlPlanes = 301,
/// VPC-SC GA is supported for this control plane.
VpcscGaSupported = 302,
/// Configuration (Istio/k8s resources) failed to apply due to internal
/// error.
ConfigApplyInternalError = 401,
/// Configuration failed to be applied due to being invalid.
ConfigValidationError = 402,
/// Encountered configuration(s) with possible unintended behavior or
/// invalid configuration. These configs may not have been applied.
ConfigValidationWarning = 403,
/// BackendService quota exceeded error code.
QuotaExceededBackendServices = 404,
/// HealthCheck quota exceeded error code.
QuotaExceededHealthChecks = 405,
/// HTTPRoute quota exceeded error code.
QuotaExceededHttpRoutes = 406,
/// TCPRoute quota exceeded error code.
QuotaExceededTcpRoutes = 407,
/// TLS routes quota exceeded error code.
QuotaExceededTlsRoutes = 408,
/// TrafficPolicy quota exceeded error code.
QuotaExceededTrafficPolicies = 409,
/// EndpointPolicy quota exceeded error code.
QuotaExceededEndpointPolicies = 410,
/// Gateway quota exceeded error code.
QuotaExceededGateways = 411,
/// Mesh quota exceeded error code.
QuotaExceededMeshes = 412,
/// ServerTLSPolicy quota exceeded error code.
QuotaExceededServerTlsPolicies = 413,
/// ClientTLSPolicy quota exceeded error code.
QuotaExceededClientTlsPolicies = 414,
/// ServiceLBPolicy quota exceeded error code.
QuotaExceededServiceLbPolicies = 415,
/// HTTPFilter quota exceeded error code.
QuotaExceededHttpFilters = 416,
/// TCPFilter quota exceeded error code.
QuotaExceededTcpFilters = 417,
/// NetworkEndpointGroup quota exceeded error code.
QuotaExceededNetworkEndpointGroups = 418,
}
impl Code {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Code::Unspecified => "CODE_UNSPECIFIED",
Code::MeshIamPermissionDenied => "MESH_IAM_PERMISSION_DENIED",
Code::CniConfigUnsupported => "CNI_CONFIG_UNSUPPORTED",
Code::GkeSandboxUnsupported => "GKE_SANDBOX_UNSUPPORTED",
Code::NodepoolWorkloadIdentityFederationRequired => {
"NODEPOOL_WORKLOAD_IDENTITY_FEDERATION_REQUIRED"
}
Code::CniInstallationFailed => "CNI_INSTALLATION_FAILED",
Code::CniPodUnschedulable => "CNI_POD_UNSCHEDULABLE",
Code::UnsupportedMultipleControlPlanes => {
"UNSUPPORTED_MULTIPLE_CONTROL_PLANES"
}
Code::VpcscGaSupported => "VPCSC_GA_SUPPORTED",
Code::ConfigApplyInternalError => "CONFIG_APPLY_INTERNAL_ERROR",
Code::ConfigValidationError => "CONFIG_VALIDATION_ERROR",
Code::ConfigValidationWarning => "CONFIG_VALIDATION_WARNING",
Code::QuotaExceededBackendServices => {
"QUOTA_EXCEEDED_BACKEND_SERVICES"
}
Code::QuotaExceededHealthChecks => "QUOTA_EXCEEDED_HEALTH_CHECKS",
Code::QuotaExceededHttpRoutes => "QUOTA_EXCEEDED_HTTP_ROUTES",
Code::QuotaExceededTcpRoutes => "QUOTA_EXCEEDED_TCP_ROUTES",
Code::QuotaExceededTlsRoutes => "QUOTA_EXCEEDED_TLS_ROUTES",
Code::QuotaExceededTrafficPolicies => {
"QUOTA_EXCEEDED_TRAFFIC_POLICIES"
}
Code::QuotaExceededEndpointPolicies => {
"QUOTA_EXCEEDED_ENDPOINT_POLICIES"
}
Code::QuotaExceededGateways => "QUOTA_EXCEEDED_GATEWAYS",
Code::QuotaExceededMeshes => "QUOTA_EXCEEDED_MESHES",
Code::QuotaExceededServerTlsPolicies => {
"QUOTA_EXCEEDED_SERVER_TLS_POLICIES"
}
Code::QuotaExceededClientTlsPolicies => {
"QUOTA_EXCEEDED_CLIENT_TLS_POLICIES"
}
Code::QuotaExceededServiceLbPolicies => {
"QUOTA_EXCEEDED_SERVICE_LB_POLICIES"
}
Code::QuotaExceededHttpFilters => "QUOTA_EXCEEDED_HTTP_FILTERS",
Code::QuotaExceededTcpFilters => "QUOTA_EXCEEDED_TCP_FILTERS",
Code::QuotaExceededNetworkEndpointGroups => {
"QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CODE_UNSPECIFIED" => Some(Self::Unspecified),
"MESH_IAM_PERMISSION_DENIED" => Some(Self::MeshIamPermissionDenied),
"CNI_CONFIG_UNSUPPORTED" => Some(Self::CniConfigUnsupported),
"GKE_SANDBOX_UNSUPPORTED" => Some(Self::GkeSandboxUnsupported),
"NODEPOOL_WORKLOAD_IDENTITY_FEDERATION_REQUIRED" => {
Some(Self::NodepoolWorkloadIdentityFederationRequired)
}
"CNI_INSTALLATION_FAILED" => Some(Self::CniInstallationFailed),
"CNI_POD_UNSCHEDULABLE" => Some(Self::CniPodUnschedulable),
"UNSUPPORTED_MULTIPLE_CONTROL_PLANES" => {
Some(Self::UnsupportedMultipleControlPlanes)
}
"VPCSC_GA_SUPPORTED" => Some(Self::VpcscGaSupported),
"CONFIG_APPLY_INTERNAL_ERROR" => Some(Self::ConfigApplyInternalError),
"CONFIG_VALIDATION_ERROR" => Some(Self::ConfigValidationError),
"CONFIG_VALIDATION_WARNING" => Some(Self::ConfigValidationWarning),
"QUOTA_EXCEEDED_BACKEND_SERVICES" => {
Some(Self::QuotaExceededBackendServices)
}
"QUOTA_EXCEEDED_HEALTH_CHECKS" => {
Some(Self::QuotaExceededHealthChecks)
}
"QUOTA_EXCEEDED_HTTP_ROUTES" => Some(Self::QuotaExceededHttpRoutes),
"QUOTA_EXCEEDED_TCP_ROUTES" => Some(Self::QuotaExceededTcpRoutes),
"QUOTA_EXCEEDED_TLS_ROUTES" => Some(Self::QuotaExceededTlsRoutes),
"QUOTA_EXCEEDED_TRAFFIC_POLICIES" => {
Some(Self::QuotaExceededTrafficPolicies)
}
"QUOTA_EXCEEDED_ENDPOINT_POLICIES" => {
Some(Self::QuotaExceededEndpointPolicies)
}
"QUOTA_EXCEEDED_GATEWAYS" => Some(Self::QuotaExceededGateways),
"QUOTA_EXCEEDED_MESHES" => Some(Self::QuotaExceededMeshes),
"QUOTA_EXCEEDED_SERVER_TLS_POLICIES" => {
Some(Self::QuotaExceededServerTlsPolicies)
}
"QUOTA_EXCEEDED_CLIENT_TLS_POLICIES" => {
Some(Self::QuotaExceededClientTlsPolicies)
}
"QUOTA_EXCEEDED_SERVICE_LB_POLICIES" => {
Some(Self::QuotaExceededServiceLbPolicies)
}
"QUOTA_EXCEEDED_HTTP_FILTERS" => Some(Self::QuotaExceededHttpFilters),
"QUOTA_EXCEEDED_TCP_FILTERS" => Some(Self::QuotaExceededTcpFilters),
"QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS" => {
Some(Self::QuotaExceededNetworkEndpointGroups)
}
_ => None,
}
}
}
/// Severity level of the reported condition
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Severity {
/// Unspecified severity
Unspecified = 0,
/// Indicates an issue that prevents the mesh from operating correctly
Error = 1,
/// Indicates a setting is likely wrong, but the mesh is still able to
/// operate
Warning = 2,
/// An informational message, not requiring any action
Info = 3,
}
impl Severity {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Severity::Unspecified => "SEVERITY_UNSPECIFIED",
Severity::Error => "ERROR",
Severity::Warning => "WARNING",
Severity::Info => "INFO",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SEVERITY_UNSPECIFIED" => Some(Self::Unspecified),
"ERROR" => Some(Self::Error),
"WARNING" => Some(Self::Warning),
"INFO" => Some(Self::Info),
_ => None,
}
}
}
}
/// Lifecycle state of Service Mesh components.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LifecycleState {
/// Unspecified
Unspecified = 0,
/// DISABLED means that the component is not enabled.
Disabled = 1,
/// FAILED_PRECONDITION means that provisioning cannot proceed because of
/// some characteristic of the member cluster.
FailedPrecondition = 2,
/// PROVISIONING means that provisioning is in progress.
Provisioning = 3,
/// ACTIVE means that the component is ready for use.
Active = 4,
/// STALLED means that provisioning could not be done.
Stalled = 5,
/// 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.)
NeedsAttention = 6,
/// DEGRADED means that the component is ready, but operating in a
/// degraded state.
Degraded = 7,
}
impl LifecycleState {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LifecycleState::Unspecified => "LIFECYCLE_STATE_UNSPECIFIED",
LifecycleState::Disabled => "DISABLED",
LifecycleState::FailedPrecondition => "FAILED_PRECONDITION",
LifecycleState::Provisioning => "PROVISIONING",
LifecycleState::Active => "ACTIVE",
LifecycleState::Stalled => "STALLED",
LifecycleState::NeedsAttention => "NEEDS_ATTENTION",
LifecycleState::Degraded => "DEGRADED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"LIFECYCLE_STATE_UNSPECIFIED" => Some(Self::Unspecified),
"DISABLED" => Some(Self::Disabled),
"FAILED_PRECONDITION" => Some(Self::FailedPrecondition),
"PROVISIONING" => Some(Self::Provisioning),
"ACTIVE" => Some(Self::Active),
"STALLED" => Some(Self::Stalled),
"NEEDS_ATTENTION" => Some(Self::NeedsAttention),
"DEGRADED" => Some(Self::Degraded),
_ => None,
}
}
}
}
/// Structured and human-readable details for a status.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StatusDetails {
/// A machine-readable code that further describes a broad status.
#[prost(string, tag = "1")]
pub code: ::prost::alloc::string::String,
/// Human-readable explanation of code.
#[prost(string, tag = "2")]
pub details: ::prost::alloc::string::String,
}