diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index f377f284551..f2a770c9520 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -831,6 +831,9 @@ message NodeConfig { // Parameters for node pools to be backed by shared sole tenant node groups. SoleTenantConfig sole_tenant_config = 42; + + // A map of resource manager tag keys and values to be attached to the nodes. + ResourceManagerTags resource_manager_tags = 45; } // Specifies options for controlling advanced machine features. @@ -1972,6 +1975,9 @@ message Cluster { // Beta APIs Config K8sBetaAPIConfig enable_k8s_beta_apis = 143; + + // GKE Enterprise Configuration. + EnterpriseConfig enterprise_config = 149; } // K8sBetaAPIConfig , configuration for beta APIs @@ -2022,6 +2028,10 @@ message NodePoolAutoConfig { // the client during cluster creation. Each tag within the list // must comply with RFC1035. NetworkTags network_tags = 1; + + // Resource manager tag keys and values to be attached to the nodes + // for managing Compute Engine firewalls using Network Firewall Policies. + ResourceManagerTags resource_manager_tags = 2; } // Subset of Nodepool message that has defaults. @@ -2253,6 +2263,10 @@ message ClusterUpdate { // Desired Beta APIs to be enabled for cluster. K8sBetaAPIConfig desired_k8s_beta_apis = 131; + + // The desired resource manager tags that apply to all auto-provisioned node + // pools in autopilot clusters and node auto-provisioning enabled clusters. + ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; } // AdditionalPodRangesConfig is the configuration for additional pod secondary @@ -2415,6 +2429,10 @@ message Operation { // [documentation on // resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs). RESIZE_CLUSTER = 18; + + // Fleet features of GKE Enterprise are being upgraded. The cluster should + // be assumed to be blocked for other upgrades until the operation finishes. + FLEET_FEATURE_UPGRADE = 19; } // The server-assigned ID for the operation. @@ -2725,6 +2743,11 @@ message UpdateNodePoolRequest { // Initiates an upgrade operation that migrates the nodes in the // node pool to the specified disk size. int64 disk_size_gb = 38 [(google.api.field_behavior) = OPTIONAL]; + + // Desired resource manager tag keys and values to be attached to the nodes + // for managing Compute Engine firewalls using Network Firewall Policies. + // Existing tags will be replaced with new values. + ResourceManagerTags resource_manager_tags = 39; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -5210,27 +5233,80 @@ enum IPv6AccessType { } // LocalNvmeSsdBlockConfig contains configuration for using raw-block local -// NVMe SSD. +// NVMe SSDs message LocalNvmeSsdBlockConfig { - // The number of raw-block local NVMe SSD disks to be attached to the node. - // Each local SSD is 375 GB in size. If zero, it means no raw-block local NVMe - // SSD disks to be attached to the node. - // The limit for this value is dependent upon the maximum number of - // disks available on a machine per zone. See: + // Number of local NVMe SSDs to use. The limit for this value is dependent + // upon the maximum number of disk available on a machine per zone. See: // https://cloud.google.com/compute/docs/disks/local-ssd // for more information. + // + // A zero (or unset) value has different meanings depending on machine type + // being used: + // 1. For pre-Gen3 machines, which support flexible numbers of local ssds, + // zero (or unset) means to disable using local SSDs as ephemeral storage. + // 2. For Gen3 machines which dictate a specific number of local ssds, zero + // (or unset) means to use the default number of local ssds that goes with + // that machine type. For example, for a c3-standard-8-lssd machine, 2 local + // ssds would be provisioned. For c3-standard-8 (which doesn't support local + // ssds), 0 will be provisioned. See + // https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds + // for more info. int32 local_ssd_count = 1; } // EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral -// storage using Local SSD. +// storage using Local SSDs. message EphemeralStorageLocalSsdConfig { // Number of local SSDs to use to back ephemeral storage. Uses NVMe - // interfaces. Each local SSD is 375 GB in size. - // If zero, it means to disable using local SSDs as ephemeral storage. - // The limit for this value is dependent upon the maximum number of - // disks available on a machine per zone. See: + // interfaces. + // + // A zero (or unset) value has different meanings depending on machine type + // being used: + // 1. For pre-Gen3 machines, which support flexible numbers of local ssds, + // zero (or unset) means to disable using local SSDs as ephemeral storage. The + // limit for this value is dependent upon the maximum number of disk + // available on a machine per zone. See: // https://cloud.google.com/compute/docs/disks/local-ssd // for more information. + // 2. For Gen3 machines which dictate a specific number of local ssds, zero + // (or unset) means to use the default number of local ssds that goes with + // that machine type. For example, for a c3-standard-8-lssd machine, 2 local + // ssds would be provisioned. For c3-standard-8 (which doesn't support local + // ssds), 0 will be provisioned. See + // https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds + // for more info. int32 local_ssd_count = 1; } + +// A map of resource manager tag keys and values to be attached to the nodes +// for managing Compute Engine firewalls using Network Firewall Policies. +// Tags must be according to specifications in +// https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications. +// A maximum of 5 tag key-value pairs can be specified. +// Existing tags will be replaced with new values. +message ResourceManagerTags { + // TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) + // 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` + // 2. `{org_id}/{tag_key_name}={tag_value_name}` + // 3. `{project_id}/{tag_key_name}={tag_value_name}` + map tags = 1; +} + +// EnterpriseConfig is the cluster enterprise configuration. +message EnterpriseConfig { + // Premium tiers for GKE Cluster. + enum ClusterTier { + // CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set. + CLUSTER_TIER_UNSPECIFIED = 0; + + // STANDARD indicates a standard GKE cluster. + STANDARD = 1; + + // ENTERPRISE indicates a GKE Enterprise cluster. + ENTERPRISE = 2; + } + + // Output only. [Output only] cluster_tier specifies the premium tier of the + // cluster. + ClusterTier cluster_tier = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/packages/google-container/protos/google/container/v1beta1/cluster_service.proto b/packages/google-container/protos/google/container/v1beta1/cluster_service.proto index 4b122939c8c..8dd58acded2 100644 --- a/packages/google-container/protos/google/container/v1beta1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1beta1/cluster_service.proto @@ -833,6 +833,9 @@ message NodeConfig { // Google Compute Engine hosts. HostMaintenancePolicy host_maintenance_policy = 44; + // A map of resource manager tag keys and values to be attached to the nodes. + ResourceManagerTags resource_manager_tags = 45; + // Optional. Enable confidential storage on Hyperdisk. // boot_disk_kms_key is required when enable_confidential_storage is true. // This is only available for private preview. @@ -1011,21 +1014,44 @@ message SandboxConfig { // filesystem. message EphemeralStorageConfig { // Number of local SSDs to use to back ephemeral storage. Uses NVMe - // interfaces. Each local SSD is 375 GB in size. - // If zero, it means to disable using local SSDs as ephemeral storage. + // interfaces. The limit for this value is dependent upon the maximum number + // of disk available on a machine per zone. See: + // https://cloud.google.com/compute/docs/disks/local-ssd + // for more information. + // + // A zero (or unset) value has different meanings depending on machine type + // being used: + // 1. For pre-Gen3 machines, which support flexible numbers of local ssds, + // zero (or unset) means to disable using local SSDs as ephemeral storage. + // 2. For Gen3 machines which dictate a specific number of local ssds, zero + // (or unset) means to use the default number of local ssds that goes with + // that machine type. For example, for a c3-standard-8-lssd machine, 2 local + // ssds would be provisioned. For c3-standard-8 (which doesn't support local + // ssds), 0 will be provisioned. See + // https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds + // for more info. int32 local_ssd_count = 1; } // LocalNvmeSsdBlockConfig contains configuration for using raw-block local // NVMe SSDs message LocalNvmeSsdBlockConfig { - // The number of raw-block local NVMe SSD disks to be attached to the node. - // Each local SSD is 375 GB in size. If zero, it means no raw-block local NVMe - // SSD disks to be attached to the node. - // The limit for this value is dependent upon the maximum number of - // disks available on a machine per zone. See: + // Number of local NVMe SSDs to use. The limit for this value is dependent + // upon the maximum number of disk available on a machine per zone. See: // https://cloud.google.com/compute/docs/disks/local-ssd // for more information. + // + // A zero (or unset) value has different meanings depending on machine type + // being used: + // 1. For pre-Gen3 machines, which support flexible numbers of local ssds, + // zero (or unset) means to disable using local SSDs as ephemeral storage. + // 2. For Gen3 machines which dictate a specific number of local ssds, zero + // (or unset) means to use the default number of local ssds that goes with + // that machine type. For example, for a c3-standard-8-lssd machine, 2 local + // ssds would be provisioned. For c3-standard-8 (which doesn't support local + // ssds), 0 will be provisioned. See + // https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds + // for more info. int32 local_ssd_count = 1; } @@ -1033,12 +1059,23 @@ message LocalNvmeSsdBlockConfig { // storage using Local SSDs. message EphemeralStorageLocalSsdConfig { // Number of local SSDs to use to back ephemeral storage. Uses NVMe - // interfaces. Each local SSD is 375 GB in size. - // If zero, it means to disable using local SSDs as ephemeral storage. - // The limit for this value is dependent upon the maximum number of - // disks available on a machine per zone. See: + // interfaces. + // + // A zero (or unset) value has different meanings depending on machine type + // being used: + // 1. For pre-Gen3 machines, which support flexible numbers of local ssds, + // zero (or unset) means to disable using local SSDs as ephemeral storage. The + // limit for this value is dependent upon the maximum number of disk + // available on a machine per zone. See: // https://cloud.google.com/compute/docs/disks/local-ssd // for more information. + // 2. For Gen3 machines which dictate a specific number of local ssds, zero + // (or unset) means to use the default number of local ssds that goes with + // that machine type. For example, for a c3-standard-8-lssd machine, 2 local + // ssds would be provisioned. For c3-standard-8 (which doesn't support local + // ssds), 0 will be provisioned. See + // https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds + // for more info. int32 local_ssd_count = 1; } @@ -1138,8 +1175,36 @@ message HostMaintenancePolicy { PERIODIC = 2; } + // Strategy that will trigger maintenance on behalf of the customer. + message OpportunisticMaintenanceStrategy { + // The amount of time that a node can remain idle (no customer owned + // workloads running), before triggering maintenance. + optional google.protobuf.Duration node_idle_time_window = 1; + + // The window of time that opportunistic maintenance can run. Example: A + // setting of 14 days implies that opportunistic maintenance can only be ran + // in the 2 weeks leading up to the scheduled maintenance date. Setting 28 + // days allows opportunistic maintenance to run at any time in the scheduled + // maintenance window (all `PERIODIC` maintenance is set 28 days in + // advance). + optional google.protobuf.Duration maintenance_availability_window = 2; + + // The minimum nodes required to be available in a pool. Blocks maintenance + // if it would cause the number of running nodes to dip below this value. + optional int64 min_nodes_per_pool = 3; + } + // Specifies the frequency of planned maintenance events. optional MaintenanceInterval maintenance_interval = 1; + + // Set of host maintenance strategies available to the customer, all require + // the maintenance_interval to be PERIODIC. If no strategy is set, and the + // interval is periodic, customer will be expected to trigger maintenance + // manually or let maintenance trigger at its initial scheduled time. + oneof maintenance_strategy { + // Strategy that will trigger maintenance on behalf of the customer. + OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + } } // Kubernetes taint is composed of three fields: key, value, and effect. Effect @@ -2205,6 +2270,9 @@ message Cluster { // Enable/Disable Security Posture API features for the cluster. SecurityPostureConfig security_posture_config = 145; + + // GKE Enterprise Configuration. + EnterpriseConfig enterprise_config = 149; } // Kubernetes open source beta apis enabled on the cluster. @@ -2329,6 +2397,10 @@ message NodePoolAutoConfig { // the client during cluster creation. Each tag within the list // must comply with RFC1035. NetworkTags network_tags = 1; + + // Resource manager tag keys and values to be attached to the nodes + // for managing Compute Engine firewalls using Network Firewall Policies. + ResourceManagerTags resource_manager_tags = 2; } // ClusterUpdate describes an update to the cluster. Exactly one update can @@ -2574,6 +2646,13 @@ message ClusterUpdate { // HostMaintenancePolicy contains the desired maintenance policy for the // Google Compute Engine hosts. HostMaintenancePolicy desired_host_maintenance_policy = 132; + + // The desired resource manager tags that apply to all auto-provisioned node + // pools in autopilot clusters and node auto-provisioning enabled clusters. + ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + + // Specify the details of in-transit encryption. + optional InTransitEncryptionConfig desired_in_transit_encryption_config = 137; } // AdditionalPodRangesConfig is the configuration for additional pod secondary @@ -2737,6 +2816,10 @@ message Operation { // [documentation on // resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs). RESIZE_CLUSTER = 18; + + // Fleet features of GKE Enterprise are being upgraded. The cluster should + // be assumed to be blocked for other upgrades until the operation finishes. + FLEET_FEATURE_UPGRADE = 19; } // The server-assigned ID for the operation. @@ -3052,6 +3135,11 @@ message UpdateNodePoolRequest { // Initiates an upgrade operation that migrates the nodes in the // node pool to the specified disk size. int64 disk_size_gb = 38 [(google.api.field_behavior) = OPTIONAL]; + + // Desired resource manager tag keys and values to be attached to the nodes + // for managing Compute Engine firewalls using Network Firewall Policies. + // Existing tags will be replaced with new values. + ResourceManagerTags resource_manager_tags = 39; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -3770,6 +3858,9 @@ message NodePool { // Start cordoning blue pool nodes. CORDONING_BLUE_POOL = 3; + // Start waiting after cordoning the blue pool and before draining it. + WAITING_TO_DRAIN_BLUE_POOL = 8; + // Start draining blue pool nodes. DRAINING_BLUE_POOL = 4; @@ -4852,6 +4943,9 @@ message NetworkConfig { // Whether FQDN Network Policy is enabled on this cluster. optional bool enable_fqdn_network_policy = 19; + + // Specify the details of in-transit encryption. + optional InTransitEncryptionConfig in_transit_encryption_config = 20; } // GatewayAPIConfig contains the desired config of Gateway API on this cluster. @@ -5758,3 +5852,49 @@ enum StackType { // The value used if the cluster is a dual stack cluster IPV4_IPV6 = 2; } + +// A map of resource manager tag keys and values to be attached to the nodes +// for managing Compute Engine firewalls using Network Firewall Policies. +// Tags must be according to specifications in +// https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications. +// A maximum of 5 tag key-value pairs can be specified. +// Existing tags will be replaced with new values. +message ResourceManagerTags { + // Tags must be in one of the following formats ([KEY]=[VALUE]) + // 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` + // 2. `{org_id}/{tag_key_name}={tag_value_name}` + // 3. `{project_id}/{tag_key_name}={tag_value_name}` + map tags = 1; +} + +// EnterpriseConfig is the cluster enterprise configuration. +message EnterpriseConfig { + // Premium tiers for GKE Cluster. + enum ClusterTier { + // CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set. + CLUSTER_TIER_UNSPECIFIED = 0; + + // STANDARD indicates a standard GKE cluster. + STANDARD = 1; + + // ENTERPRISE indicates a GKE Enterprise cluster. + ENTERPRISE = 2; + } + + // Output only. [Output only] cluster_tier specifies the premium tier of the + // cluster. + ClusterTier cluster_tier = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Options for in-transit encryption. +enum InTransitEncryptionConfig { + // Unspecified, will be inferred as default - + // IN_TRANSIT_ENCRYPTION_UNSPECIFIED. + IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; + + // In-transit encryption is disabled. + IN_TRANSIT_ENCRYPTION_DISABLED = 1; + + // Data in-transit is encrypted using inter-node transparent encryption. + IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; +} diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 4f81f620385..1da44d5745c 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -1209,6 +1209,9 @@ export namespace google { /** NodeConfig soleTenantConfig */ soleTenantConfig?: (google.container.v1.ISoleTenantConfig|null); + + /** NodeConfig resourceManagerTags */ + resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); } /** Represents a NodeConfig. */ @@ -1322,6 +1325,9 @@ export namespace google { /** NodeConfig soleTenantConfig. */ public soleTenantConfig?: (google.container.v1.ISoleTenantConfig|null); + /** NodeConfig resourceManagerTags. */ + public resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); + /** NodeConfig _fastSocket. */ public _fastSocket?: "fastSocket"; @@ -5985,6 +5991,9 @@ export namespace google { /** Cluster enableK8sBetaApis */ enableK8sBetaApis?: (google.container.v1.IK8sBetaAPIConfig|null); + + /** Cluster enterpriseConfig */ + enterpriseConfig?: (google.container.v1.IEnterpriseConfig|null); } /** Represents a Cluster. */ @@ -6194,6 +6203,9 @@ export namespace google { /** Cluster enableK8sBetaApis. */ public enableK8sBetaApis?: (google.container.v1.IK8sBetaAPIConfig|null); + /** Cluster enterpriseConfig. */ + public enterpriseConfig?: (google.container.v1.IEnterpriseConfig|null); + /** Cluster _nodePoolDefaults. */ public _nodePoolDefaults?: "nodePoolDefaults"; @@ -6517,6 +6529,9 @@ export namespace google { /** NodePoolAutoConfig networkTags */ networkTags?: (google.container.v1.INetworkTags|null); + + /** NodePoolAutoConfig resourceManagerTags */ + resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); } /** Represents a NodePoolAutoConfig. */ @@ -6531,6 +6546,9 @@ export namespace google { /** NodePoolAutoConfig networkTags. */ public networkTags?: (google.container.v1.INetworkTags|null); + /** NodePoolAutoConfig resourceManagerTags. */ + public resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); + /** * Creates a new NodePoolAutoConfig instance using the specified properties. * @param [properties] Properties to set @@ -6958,6 +6976,9 @@ export namespace google { /** ClusterUpdate desiredK8sBetaApis */ desiredK8sBetaApis?: (google.container.v1.IK8sBetaAPIConfig|null); + + /** ClusterUpdate desiredNodePoolAutoConfigResourceManagerTags */ + desiredNodePoolAutoConfigResourceManagerTags?: (google.container.v1.IResourceManagerTags|null); } /** Represents a ClusterUpdate. */ @@ -7116,6 +7137,9 @@ export namespace google { /** ClusterUpdate desiredK8sBetaApis. */ public desiredK8sBetaApis?: (google.container.v1.IK8sBetaAPIConfig|null); + /** ClusterUpdate desiredNodePoolAutoConfigResourceManagerTags. */ + public desiredNodePoolAutoConfigResourceManagerTags?: (google.container.v1.IResourceManagerTags|null); + /** ClusterUpdate _desiredEnablePrivateEndpoint. */ public _desiredEnablePrivateEndpoint?: "desiredEnablePrivateEndpoint"; @@ -7617,7 +7641,8 @@ export namespace google { SET_NODE_POOL_SIZE = 14, SET_NETWORK_POLICY = 15, SET_MAINTENANCE_POLICY = 16, - RESIZE_CLUSTER = 18 + RESIZE_CLUSTER = 18, + FLEET_FEATURE_UPGRADE = 19 } } @@ -8291,6 +8316,9 @@ export namespace google { /** UpdateNodePoolRequest diskSizeGb */ diskSizeGb?: (number|Long|string|null); + + /** UpdateNodePoolRequest resourceManagerTags */ + resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); } /** Represents an UpdateNodePoolRequest. */ @@ -8383,6 +8411,9 @@ export namespace google { /** UpdateNodePoolRequest diskSizeGb. */ public diskSizeGb: (number|Long|string); + /** UpdateNodePoolRequest resourceManagerTags. */ + public resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @param [properties] Properties to set @@ -21107,6 +21138,210 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of a ResourceManagerTags. */ + interface IResourceManagerTags { + + /** ResourceManagerTags tags */ + tags?: ({ [k: string]: string }|null); + } + + /** Represents a ResourceManagerTags. */ + class ResourceManagerTags implements IResourceManagerTags { + + /** + * Constructs a new ResourceManagerTags. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IResourceManagerTags); + + /** ResourceManagerTags tags. */ + public tags: { [k: string]: string }; + + /** + * Creates a new ResourceManagerTags instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceManagerTags instance + */ + public static create(properties?: google.container.v1.IResourceManagerTags): google.container.v1.ResourceManagerTags; + + /** + * Encodes the specified ResourceManagerTags message. Does not implicitly {@link google.container.v1.ResourceManagerTags.verify|verify} messages. + * @param message ResourceManagerTags message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IResourceManagerTags, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceManagerTags message, length delimited. Does not implicitly {@link google.container.v1.ResourceManagerTags.verify|verify} messages. + * @param message ResourceManagerTags message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IResourceManagerTags, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceManagerTags message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceManagerTags + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ResourceManagerTags; + + /** + * Decodes a ResourceManagerTags message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceManagerTags + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ResourceManagerTags; + + /** + * Verifies a ResourceManagerTags message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ResourceManagerTags message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceManagerTags + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ResourceManagerTags; + + /** + * Creates a plain object from a ResourceManagerTags message. Also converts values to other types if specified. + * @param message ResourceManagerTags + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ResourceManagerTags, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceManagerTags to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceManagerTags + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnterpriseConfig. */ + interface IEnterpriseConfig { + + /** EnterpriseConfig clusterTier */ + clusterTier?: (google.container.v1.EnterpriseConfig.ClusterTier|keyof typeof google.container.v1.EnterpriseConfig.ClusterTier|null); + } + + /** Represents an EnterpriseConfig. */ + class EnterpriseConfig implements IEnterpriseConfig { + + /** + * Constructs a new EnterpriseConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IEnterpriseConfig); + + /** EnterpriseConfig clusterTier. */ + public clusterTier: (google.container.v1.EnterpriseConfig.ClusterTier|keyof typeof google.container.v1.EnterpriseConfig.ClusterTier); + + /** + * Creates a new EnterpriseConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns EnterpriseConfig instance + */ + public static create(properties?: google.container.v1.IEnterpriseConfig): google.container.v1.EnterpriseConfig; + + /** + * Encodes the specified EnterpriseConfig message. Does not implicitly {@link google.container.v1.EnterpriseConfig.verify|verify} messages. + * @param message EnterpriseConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IEnterpriseConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnterpriseConfig message, length delimited. Does not implicitly {@link google.container.v1.EnterpriseConfig.verify|verify} messages. + * @param message EnterpriseConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IEnterpriseConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnterpriseConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnterpriseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.EnterpriseConfig; + + /** + * Decodes an EnterpriseConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnterpriseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.EnterpriseConfig; + + /** + * Verifies an EnterpriseConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnterpriseConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnterpriseConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.EnterpriseConfig; + + /** + * Creates a plain object from an EnterpriseConfig message. Also converts values to other types if specified. + * @param message EnterpriseConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.EnterpriseConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnterpriseConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnterpriseConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EnterpriseConfig { + + /** ClusterTier enum. */ + enum ClusterTier { + CLUSTER_TIER_UNSPECIFIED = 0, + STANDARD = 1, + ENTERPRISE = 2 + } + } } /** Namespace v1beta1. */ @@ -22326,6 +22561,9 @@ export namespace google { /** NodeConfig hostMaintenancePolicy */ hostMaintenancePolicy?: (google.container.v1beta1.IHostMaintenancePolicy|null); + /** NodeConfig resourceManagerTags */ + resourceManagerTags?: (google.container.v1beta1.IResourceManagerTags|null); + /** NodeConfig enableConfidentialStorage */ enableConfidentialStorage?: (boolean|null); } @@ -22447,6 +22685,9 @@ export namespace google { /** NodeConfig hostMaintenancePolicy. */ public hostMaintenancePolicy?: (google.container.v1beta1.IHostMaintenancePolicy|null); + /** NodeConfig resourceManagerTags. */ + public resourceManagerTags?: (google.container.v1beta1.IResourceManagerTags|null); + /** NodeConfig enableConfidentialStorage. */ public enableConfidentialStorage: boolean; @@ -24065,6 +24306,9 @@ export namespace google { /** HostMaintenancePolicy maintenanceInterval */ maintenanceInterval?: (google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval|keyof typeof google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval|null); + + /** HostMaintenancePolicy opportunisticMaintenanceStrategy */ + opportunisticMaintenanceStrategy?: (google.container.v1beta1.HostMaintenancePolicy.IOpportunisticMaintenanceStrategy|null); } /** Represents a HostMaintenancePolicy. */ @@ -24079,9 +24323,15 @@ export namespace google { /** HostMaintenancePolicy maintenanceInterval. */ public maintenanceInterval?: (google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval|keyof typeof google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval|null); + /** HostMaintenancePolicy opportunisticMaintenanceStrategy. */ + public opportunisticMaintenanceStrategy?: (google.container.v1beta1.HostMaintenancePolicy.IOpportunisticMaintenanceStrategy|null); + /** HostMaintenancePolicy _maintenanceInterval. */ public _maintenanceInterval?: "maintenanceInterval"; + /** HostMaintenancePolicy maintenanceStrategy. */ + public maintenanceStrategy?: "opportunisticMaintenanceStrategy"; + /** * Creates a new HostMaintenancePolicy instance using the specified properties. * @param [properties] Properties to set @@ -24168,6 +24418,124 @@ export namespace google { AS_NEEDED = 1, PERIODIC = 2 } + + /** Properties of an OpportunisticMaintenanceStrategy. */ + interface IOpportunisticMaintenanceStrategy { + + /** OpportunisticMaintenanceStrategy nodeIdleTimeWindow */ + nodeIdleTimeWindow?: (google.protobuf.IDuration|null); + + /** OpportunisticMaintenanceStrategy maintenanceAvailabilityWindow */ + maintenanceAvailabilityWindow?: (google.protobuf.IDuration|null); + + /** OpportunisticMaintenanceStrategy minNodesPerPool */ + minNodesPerPool?: (number|Long|string|null); + } + + /** Represents an OpportunisticMaintenanceStrategy. */ + class OpportunisticMaintenanceStrategy implements IOpportunisticMaintenanceStrategy { + + /** + * Constructs a new OpportunisticMaintenanceStrategy. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1beta1.HostMaintenancePolicy.IOpportunisticMaintenanceStrategy); + + /** OpportunisticMaintenanceStrategy nodeIdleTimeWindow. */ + public nodeIdleTimeWindow?: (google.protobuf.IDuration|null); + + /** OpportunisticMaintenanceStrategy maintenanceAvailabilityWindow. */ + public maintenanceAvailabilityWindow?: (google.protobuf.IDuration|null); + + /** OpportunisticMaintenanceStrategy minNodesPerPool. */ + public minNodesPerPool?: (number|Long|string|null); + + /** OpportunisticMaintenanceStrategy _nodeIdleTimeWindow. */ + public _nodeIdleTimeWindow?: "nodeIdleTimeWindow"; + + /** OpportunisticMaintenanceStrategy _maintenanceAvailabilityWindow. */ + public _maintenanceAvailabilityWindow?: "maintenanceAvailabilityWindow"; + + /** OpportunisticMaintenanceStrategy _minNodesPerPool. */ + public _minNodesPerPool?: "minNodesPerPool"; + + /** + * Creates a new OpportunisticMaintenanceStrategy instance using the specified properties. + * @param [properties] Properties to set + * @returns OpportunisticMaintenanceStrategy instance + */ + public static create(properties?: google.container.v1beta1.HostMaintenancePolicy.IOpportunisticMaintenanceStrategy): google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy; + + /** + * Encodes the specified OpportunisticMaintenanceStrategy message. Does not implicitly {@link google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.verify|verify} messages. + * @param message OpportunisticMaintenanceStrategy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1beta1.HostMaintenancePolicy.IOpportunisticMaintenanceStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OpportunisticMaintenanceStrategy message, length delimited. Does not implicitly {@link google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.verify|verify} messages. + * @param message OpportunisticMaintenanceStrategy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1beta1.HostMaintenancePolicy.IOpportunisticMaintenanceStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OpportunisticMaintenanceStrategy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OpportunisticMaintenanceStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy; + + /** + * Decodes an OpportunisticMaintenanceStrategy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OpportunisticMaintenanceStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy; + + /** + * Verifies an OpportunisticMaintenanceStrategy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an OpportunisticMaintenanceStrategy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OpportunisticMaintenanceStrategy + */ + public static fromObject(object: { [k: string]: any }): google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy; + + /** + * Creates a plain object from an OpportunisticMaintenanceStrategy message. Also converts values to other types if specified. + * @param message OpportunisticMaintenanceStrategy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OpportunisticMaintenanceStrategy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OpportunisticMaintenanceStrategy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Properties of a NodeTaint. */ @@ -28113,6 +28481,9 @@ export namespace google { /** Cluster securityPostureConfig */ securityPostureConfig?: (google.container.v1beta1.ISecurityPostureConfig|null); + + /** Cluster enterpriseConfig */ + enterpriseConfig?: (google.container.v1beta1.IEnterpriseConfig|null); } /** Represents a Cluster. */ @@ -28349,6 +28720,9 @@ export namespace google { /** Cluster securityPostureConfig. */ public securityPostureConfig?: (google.container.v1beta1.ISecurityPostureConfig|null); + /** Cluster enterpriseConfig. */ + public enterpriseConfig?: (google.container.v1beta1.IEnterpriseConfig|null); + /** Cluster _nodePoolDefaults. */ public _nodePoolDefaults?: "nodePoolDefaults"; @@ -29113,6 +29487,9 @@ export namespace google { /** NodePoolAutoConfig networkTags */ networkTags?: (google.container.v1beta1.INetworkTags|null); + + /** NodePoolAutoConfig resourceManagerTags */ + resourceManagerTags?: (google.container.v1beta1.IResourceManagerTags|null); } /** Represents a NodePoolAutoConfig. */ @@ -29127,6 +29504,9 @@ export namespace google { /** NodePoolAutoConfig networkTags. */ public networkTags?: (google.container.v1beta1.INetworkTags|null); + /** NodePoolAutoConfig resourceManagerTags. */ + public resourceManagerTags?: (google.container.v1beta1.IResourceManagerTags|null); + /** * Creates a new NodePoolAutoConfig instance using the specified properties. * @param [properties] Properties to set @@ -29378,6 +29758,12 @@ export namespace google { /** ClusterUpdate desiredHostMaintenancePolicy */ desiredHostMaintenancePolicy?: (google.container.v1beta1.IHostMaintenancePolicy|null); + + /** ClusterUpdate desiredNodePoolAutoConfigResourceManagerTags */ + desiredNodePoolAutoConfigResourceManagerTags?: (google.container.v1beta1.IResourceManagerTags|null); + + /** ClusterUpdate desiredInTransitEncryptionConfig */ + desiredInTransitEncryptionConfig?: (google.container.v1beta1.InTransitEncryptionConfig|keyof typeof google.container.v1beta1.InTransitEncryptionConfig|null); } /** Represents a ClusterUpdate. */ @@ -29560,6 +29946,12 @@ export namespace google { /** ClusterUpdate desiredHostMaintenancePolicy. */ public desiredHostMaintenancePolicy?: (google.container.v1beta1.IHostMaintenancePolicy|null); + /** ClusterUpdate desiredNodePoolAutoConfigResourceManagerTags. */ + public desiredNodePoolAutoConfigResourceManagerTags?: (google.container.v1beta1.IResourceManagerTags|null); + + /** ClusterUpdate desiredInTransitEncryptionConfig. */ + public desiredInTransitEncryptionConfig?: (google.container.v1beta1.InTransitEncryptionConfig|keyof typeof google.container.v1beta1.InTransitEncryptionConfig|null); + /** ClusterUpdate _desiredEnablePrivateEndpoint. */ public _desiredEnablePrivateEndpoint?: "desiredEnablePrivateEndpoint"; @@ -29569,6 +29961,9 @@ export namespace google { /** ClusterUpdate _desiredEnableFqdnNetworkPolicy. */ public _desiredEnableFqdnNetworkPolicy?: "desiredEnableFqdnNetworkPolicy"; + /** ClusterUpdate _desiredInTransitEncryptionConfig. */ + public _desiredInTransitEncryptionConfig?: "desiredInTransitEncryptionConfig"; + /** * Creates a new ClusterUpdate instance using the specified properties. * @param [properties] Properties to set @@ -30064,7 +30459,8 @@ export namespace google { SET_NODE_POOL_SIZE = 14, SET_NETWORK_POLICY = 15, SET_MAINTENANCE_POLICY = 16, - RESIZE_CLUSTER = 18 + RESIZE_CLUSTER = 18, + FLEET_FEATURE_UPGRADE = 19 } } @@ -30738,6 +31134,9 @@ export namespace google { /** UpdateNodePoolRequest diskSizeGb */ diskSizeGb?: (number|Long|string|null); + + /** UpdateNodePoolRequest resourceManagerTags */ + resourceManagerTags?: (google.container.v1beta1.IResourceManagerTags|null); } /** Represents an UpdateNodePoolRequest. */ @@ -30830,6 +31229,9 @@ export namespace google { /** UpdateNodePoolRequest diskSizeGb. */ public diskSizeGb: (number|Long|string); + /** UpdateNodePoolRequest resourceManagerTags. */ + public resourceManagerTags?: (google.container.v1beta1.IResourceManagerTags|null); + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @param [properties] Properties to set @@ -34592,6 +34994,7 @@ export namespace google { UPDATE_STARTED = 1, CREATING_GREEN_POOL = 2, CORDONING_BLUE_POOL = 3, + WAITING_TO_DRAIN_BLUE_POOL = 8, DRAINING_BLUE_POOL = 4, NODE_POOL_SOAKING = 5, DELETING_BLUE_POOL = 6, @@ -38486,6 +38889,9 @@ export namespace google { /** NetworkConfig enableFqdnNetworkPolicy */ enableFqdnNetworkPolicy?: (boolean|null); + + /** NetworkConfig inTransitEncryptionConfig */ + inTransitEncryptionConfig?: (google.container.v1beta1.InTransitEncryptionConfig|keyof typeof google.container.v1beta1.InTransitEncryptionConfig|null); } /** Represents a NetworkConfig. */ @@ -38536,9 +38942,15 @@ export namespace google { /** NetworkConfig enableFqdnNetworkPolicy. */ public enableFqdnNetworkPolicy?: (boolean|null); + /** NetworkConfig inTransitEncryptionConfig. */ + public inTransitEncryptionConfig?: (google.container.v1beta1.InTransitEncryptionConfig|keyof typeof google.container.v1beta1.InTransitEncryptionConfig|null); + /** NetworkConfig _enableFqdnNetworkPolicy. */ public _enableFqdnNetworkPolicy?: "enableFqdnNetworkPolicy"; + /** NetworkConfig _inTransitEncryptionConfig. */ + public _inTransitEncryptionConfig?: "inTransitEncryptionConfig"; + /** * Creates a new NetworkConfig instance using the specified properties. * @param [properties] Properties to set @@ -44432,6 +44844,217 @@ export namespace google { IPV4 = 1, IPV4_IPV6 = 2 } + + /** Properties of a ResourceManagerTags. */ + interface IResourceManagerTags { + + /** ResourceManagerTags tags */ + tags?: ({ [k: string]: string }|null); + } + + /** Represents a ResourceManagerTags. */ + class ResourceManagerTags implements IResourceManagerTags { + + /** + * Constructs a new ResourceManagerTags. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1beta1.IResourceManagerTags); + + /** ResourceManagerTags tags. */ + public tags: { [k: string]: string }; + + /** + * Creates a new ResourceManagerTags instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceManagerTags instance + */ + public static create(properties?: google.container.v1beta1.IResourceManagerTags): google.container.v1beta1.ResourceManagerTags; + + /** + * Encodes the specified ResourceManagerTags message. Does not implicitly {@link google.container.v1beta1.ResourceManagerTags.verify|verify} messages. + * @param message ResourceManagerTags message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1beta1.IResourceManagerTags, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceManagerTags message, length delimited. Does not implicitly {@link google.container.v1beta1.ResourceManagerTags.verify|verify} messages. + * @param message ResourceManagerTags message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1beta1.IResourceManagerTags, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceManagerTags message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceManagerTags + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1beta1.ResourceManagerTags; + + /** + * Decodes a ResourceManagerTags message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceManagerTags + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1beta1.ResourceManagerTags; + + /** + * Verifies a ResourceManagerTags message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ResourceManagerTags message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceManagerTags + */ + public static fromObject(object: { [k: string]: any }): google.container.v1beta1.ResourceManagerTags; + + /** + * Creates a plain object from a ResourceManagerTags message. Also converts values to other types if specified. + * @param message ResourceManagerTags + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1beta1.ResourceManagerTags, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceManagerTags to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceManagerTags + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EnterpriseConfig. */ + interface IEnterpriseConfig { + + /** EnterpriseConfig clusterTier */ + clusterTier?: (google.container.v1beta1.EnterpriseConfig.ClusterTier|keyof typeof google.container.v1beta1.EnterpriseConfig.ClusterTier|null); + } + + /** Represents an EnterpriseConfig. */ + class EnterpriseConfig implements IEnterpriseConfig { + + /** + * Constructs a new EnterpriseConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1beta1.IEnterpriseConfig); + + /** EnterpriseConfig clusterTier. */ + public clusterTier: (google.container.v1beta1.EnterpriseConfig.ClusterTier|keyof typeof google.container.v1beta1.EnterpriseConfig.ClusterTier); + + /** + * Creates a new EnterpriseConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns EnterpriseConfig instance + */ + public static create(properties?: google.container.v1beta1.IEnterpriseConfig): google.container.v1beta1.EnterpriseConfig; + + /** + * Encodes the specified EnterpriseConfig message. Does not implicitly {@link google.container.v1beta1.EnterpriseConfig.verify|verify} messages. + * @param message EnterpriseConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1beta1.IEnterpriseConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnterpriseConfig message, length delimited. Does not implicitly {@link google.container.v1beta1.EnterpriseConfig.verify|verify} messages. + * @param message EnterpriseConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1beta1.IEnterpriseConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnterpriseConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnterpriseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1beta1.EnterpriseConfig; + + /** + * Decodes an EnterpriseConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnterpriseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1beta1.EnterpriseConfig; + + /** + * Verifies an EnterpriseConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnterpriseConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnterpriseConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1beta1.EnterpriseConfig; + + /** + * Creates a plain object from an EnterpriseConfig message. Also converts values to other types if specified. + * @param message EnterpriseConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1beta1.EnterpriseConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnterpriseConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnterpriseConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EnterpriseConfig { + + /** ClusterTier enum. */ + enum ClusterTier { + CLUSTER_TIER_UNSPECIFIED = 0, + STANDARD = 1, + ENTERPRISE = 2 + } + } + + /** InTransitEncryptionConfig enum. */ + enum InTransitEncryptionConfig { + IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0, + IN_TRANSIT_ENCRYPTION_DISABLED = 1, + IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2 + } } } diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 51ca38452f3..b74267ed75e 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -2133,6 +2133,7 @@ * @property {google.container.v1.ILocalNvmeSsdBlockConfig|null} [localNvmeSsdBlockConfig] NodeConfig localNvmeSsdBlockConfig * @property {google.container.v1.IEphemeralStorageLocalSsdConfig|null} [ephemeralStorageLocalSsdConfig] NodeConfig ephemeralStorageLocalSsdConfig * @property {google.container.v1.ISoleTenantConfig|null} [soleTenantConfig] NodeConfig soleTenantConfig + * @property {google.container.v1.IResourceManagerTags|null} [resourceManagerTags] NodeConfig resourceManagerTags */ /** @@ -2429,6 +2430,14 @@ */ NodeConfig.prototype.soleTenantConfig = null; + /** + * NodeConfig resourceManagerTags. + * @member {google.container.v1.IResourceManagerTags|null|undefined} resourceManagerTags + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.resourceManagerTags = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -2542,6 +2551,8 @@ $root.google.container.v1.EphemeralStorageLocalSsdConfig.encode(message.ephemeralStorageLocalSsdConfig, writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim(); if (message.soleTenantConfig != null && Object.hasOwnProperty.call(message, "soleTenantConfig")) $root.google.container.v1.SoleTenantConfig.encode(message.soleTenantConfig, writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + $root.google.container.v1.ResourceManagerTags.encode(message.resourceManagerTags, writer.uint32(/* id 45, wireType 2 =*/362).fork()).ldelim(); return writer; }; @@ -2777,6 +2788,10 @@ message.soleTenantConfig = $root.google.container.v1.SoleTenantConfig.decode(reader, reader.uint32()); break; } + case 45: { + message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -2985,6 +3000,11 @@ if (error) return "soleTenantConfig." + error; } + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + var error = $root.google.container.v1.ResourceManagerTags.verify(message.resourceManagerTags); + if (error) + return "resourceManagerTags." + error; + } return null; }; @@ -3157,6 +3177,11 @@ throw TypeError(".google.container.v1.NodeConfig.soleTenantConfig: object expected"); message.soleTenantConfig = $root.google.container.v1.SoleTenantConfig.fromObject(object.soleTenantConfig); } + if (object.resourceManagerTags != null) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.container.v1.NodeConfig.resourceManagerTags: object expected"); + message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.fromObject(object.resourceManagerTags); + } return message; }; @@ -3211,6 +3236,7 @@ object.localNvmeSsdBlockConfig = null; object.ephemeralStorageLocalSsdConfig = null; object.soleTenantConfig = null; + object.resourceManagerTags = null; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -3305,6 +3331,8 @@ object.ephemeralStorageLocalSsdConfig = $root.google.container.v1.EphemeralStorageLocalSsdConfig.toObject(message.ephemeralStorageLocalSsdConfig, options); if (message.soleTenantConfig != null && message.hasOwnProperty("soleTenantConfig")) object.soleTenantConfig = $root.google.container.v1.SoleTenantConfig.toObject(message.soleTenantConfig, options); + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) + object.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.toObject(message.resourceManagerTags, options); return object; }; @@ -13862,6 +13890,7 @@ * @property {google.container.v1.IFleet|null} [fleet] Cluster fleet * @property {google.container.v1.ISecurityPostureConfig|null} [securityPostureConfig] Cluster securityPostureConfig * @property {google.container.v1.IK8sBetaAPIConfig|null} [enableK8sBetaApis] Cluster enableK8sBetaApis + * @property {google.container.v1.IEnterpriseConfig|null} [enterpriseConfig] Cluster enterpriseConfig */ /** @@ -14412,6 +14441,14 @@ */ Cluster.prototype.enableK8sBetaApis = null; + /** + * Cluster enterpriseConfig. + * @member {google.container.v1.IEnterpriseConfig|null|undefined} enterpriseConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.enterpriseConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -14587,6 +14624,8 @@ $root.google.container.v1.K8sBetaAPIConfig.encode(message.enableK8sBetaApis, writer.uint32(/* id 143, wireType 2 =*/1146).fork()).ldelim(); if (message.securityPostureConfig != null && Object.hasOwnProperty.call(message, "securityPostureConfig")) $root.google.container.v1.SecurityPostureConfig.encode(message.securityPostureConfig, writer.uint32(/* id 145, wireType 2 =*/1162).fork()).ldelim(); + if (message.enterpriseConfig != null && Object.hasOwnProperty.call(message, "enterpriseConfig")) + $root.google.container.v1.EnterpriseConfig.encode(message.enterpriseConfig, writer.uint32(/* id 149, wireType 2 =*/1194).fork()).ldelim(); return writer; }; @@ -14912,6 +14951,10 @@ message.enableK8sBetaApis = $root.google.container.v1.K8sBetaAPIConfig.decode(reader, reader.uint32()); break; } + case 149: { + message.enterpriseConfig = $root.google.container.v1.EnterpriseConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -15250,6 +15293,11 @@ if (error) return "enableK8sBetaApis." + error; } + if (message.enterpriseConfig != null && message.hasOwnProperty("enterpriseConfig")) { + var error = $root.google.container.v1.EnterpriseConfig.verify(message.enterpriseConfig); + if (error) + return "enterpriseConfig." + error; + } return null; }; @@ -15561,6 +15609,11 @@ throw TypeError(".google.container.v1.Cluster.enableK8sBetaApis: object expected"); message.enableK8sBetaApis = $root.google.container.v1.K8sBetaAPIConfig.fromObject(object.enableK8sBetaApis); } + if (object.enterpriseConfig != null) { + if (typeof object.enterpriseConfig !== "object") + throw TypeError(".google.container.v1.Cluster.enterpriseConfig: object expected"); + message.enterpriseConfig = $root.google.container.v1.EnterpriseConfig.fromObject(object.enterpriseConfig); + } return message; }; @@ -15646,6 +15699,7 @@ object.fleet = null; object.enableK8sBetaApis = null; object.securityPostureConfig = null; + object.enterpriseConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -15798,6 +15852,8 @@ object.enableK8sBetaApis = $root.google.container.v1.K8sBetaAPIConfig.toObject(message.enableK8sBetaApis, options); if (message.securityPostureConfig != null && message.hasOwnProperty("securityPostureConfig")) object.securityPostureConfig = $root.google.container.v1.SecurityPostureConfig.toObject(message.securityPostureConfig, options); + if (message.enterpriseConfig != null && message.hasOwnProperty("enterpriseConfig")) + object.enterpriseConfig = $root.google.container.v1.EnterpriseConfig.toObject(message.enterpriseConfig, options); return object; }; @@ -16419,6 +16475,7 @@ * @memberof google.container.v1 * @interface INodePoolAutoConfig * @property {google.container.v1.INetworkTags|null} [networkTags] NodePoolAutoConfig networkTags + * @property {google.container.v1.IResourceManagerTags|null} [resourceManagerTags] NodePoolAutoConfig resourceManagerTags */ /** @@ -16444,6 +16501,14 @@ */ NodePoolAutoConfig.prototype.networkTags = null; + /** + * NodePoolAutoConfig resourceManagerTags. + * @member {google.container.v1.IResourceManagerTags|null|undefined} resourceManagerTags + * @memberof google.container.v1.NodePoolAutoConfig + * @instance + */ + NodePoolAutoConfig.prototype.resourceManagerTags = null; + /** * Creates a new NodePoolAutoConfig instance using the specified properties. * @function create @@ -16470,6 +16535,8 @@ writer = $Writer.create(); if (message.networkTags != null && Object.hasOwnProperty.call(message, "networkTags")) $root.google.container.v1.NetworkTags.encode(message.networkTags, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + $root.google.container.v1.ResourceManagerTags.encode(message.resourceManagerTags, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -16508,6 +16575,10 @@ message.networkTags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); break; } + case 2: { + message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -16548,6 +16619,11 @@ if (error) return "networkTags." + error; } + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + var error = $root.google.container.v1.ResourceManagerTags.verify(message.resourceManagerTags); + if (error) + return "resourceManagerTags." + error; + } return null; }; @@ -16568,6 +16644,11 @@ throw TypeError(".google.container.v1.NodePoolAutoConfig.networkTags: object expected"); message.networkTags = $root.google.container.v1.NetworkTags.fromObject(object.networkTags); } + if (object.resourceManagerTags != null) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.container.v1.NodePoolAutoConfig.resourceManagerTags: object expected"); + message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.fromObject(object.resourceManagerTags); + } return message; }; @@ -16584,10 +16665,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.networkTags = null; + object.resourceManagerTags = null; + } if (message.networkTags != null && message.hasOwnProperty("networkTags")) object.networkTags = $root.google.container.v1.NetworkTags.toObject(message.networkTags, options); + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) + object.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.toObject(message.resourceManagerTags, options); return object; }; @@ -17120,6 +17205,7 @@ * @property {boolean|null} [desiredEnableFqdnNetworkPolicy] ClusterUpdate desiredEnableFqdnNetworkPolicy * @property {google.container.v1.IWorkloadPolicyConfig|null} [desiredAutopilotWorkloadPolicyConfig] ClusterUpdate desiredAutopilotWorkloadPolicyConfig * @property {google.container.v1.IK8sBetaAPIConfig|null} [desiredK8sBetaApis] ClusterUpdate desiredK8sBetaApis + * @property {google.container.v1.IResourceManagerTags|null} [desiredNodePoolAutoConfigResourceManagerTags] ClusterUpdate desiredNodePoolAutoConfigResourceManagerTags */ /** @@ -17530,6 +17616,14 @@ */ ClusterUpdate.prototype.desiredK8sBetaApis = null; + /** + * ClusterUpdate desiredNodePoolAutoConfigResourceManagerTags. + * @member {google.container.v1.IResourceManagerTags|null|undefined} desiredNodePoolAutoConfigResourceManagerTags + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredNodePoolAutoConfigResourceManagerTags = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -17678,6 +17772,8 @@ $root.google.container.v1.WorkloadPolicyConfig.encode(message.desiredAutopilotWorkloadPolicyConfig, writer.uint32(/* id 128, wireType 2 =*/1026).fork()).ldelim(); if (message.desiredK8sBetaApis != null && Object.hasOwnProperty.call(message, "desiredK8sBetaApis")) $root.google.container.v1.K8sBetaAPIConfig.encode(message.desiredK8sBetaApis, writer.uint32(/* id 131, wireType 2 =*/1050).fork()).ldelim(); + if (message.desiredNodePoolAutoConfigResourceManagerTags != null && Object.hasOwnProperty.call(message, "desiredNodePoolAutoConfigResourceManagerTags")) + $root.google.container.v1.ResourceManagerTags.encode(message.desiredNodePoolAutoConfigResourceManagerTags, writer.uint32(/* id 136, wireType 2 =*/1090).fork()).ldelim(); return writer; }; @@ -17910,6 +18006,10 @@ message.desiredK8sBetaApis = $root.google.container.v1.K8sBetaAPIConfig.decode(reader, reader.uint32()); break; } + case 136: { + message.desiredNodePoolAutoConfigResourceManagerTags = $root.google.container.v1.ResourceManagerTags.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -18192,6 +18292,11 @@ if (error) return "desiredK8sBetaApis." + error; } + if (message.desiredNodePoolAutoConfigResourceManagerTags != null && message.hasOwnProperty("desiredNodePoolAutoConfigResourceManagerTags")) { + var error = $root.google.container.v1.ResourceManagerTags.verify(message.desiredNodePoolAutoConfigResourceManagerTags); + if (error) + return "desiredNodePoolAutoConfigResourceManagerTags." + error; + } return null; }; @@ -18476,6 +18581,11 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredK8sBetaApis: object expected"); message.desiredK8sBetaApis = $root.google.container.v1.K8sBetaAPIConfig.fromObject(object.desiredK8sBetaApis); } + if (object.desiredNodePoolAutoConfigResourceManagerTags != null) { + if (typeof object.desiredNodePoolAutoConfigResourceManagerTags !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolAutoConfigResourceManagerTags: object expected"); + message.desiredNodePoolAutoConfigResourceManagerTags = $root.google.container.v1.ResourceManagerTags.fromObject(object.desiredNodePoolAutoConfigResourceManagerTags); + } return message; }; @@ -18541,6 +18651,7 @@ object.desiredNetworkPerformanceConfig = null; object.desiredAutopilotWorkloadPolicyConfig = null; object.desiredK8sBetaApis = null; + object.desiredNodePoolAutoConfigResourceManagerTags = null; } if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) object.desiredNodeVersion = message.desiredNodeVersion; @@ -18649,6 +18760,8 @@ object.desiredAutopilotWorkloadPolicyConfig = $root.google.container.v1.WorkloadPolicyConfig.toObject(message.desiredAutopilotWorkloadPolicyConfig, options); if (message.desiredK8sBetaApis != null && message.hasOwnProperty("desiredK8sBetaApis")) object.desiredK8sBetaApis = $root.google.container.v1.K8sBetaAPIConfig.toObject(message.desiredK8sBetaApis, options); + if (message.desiredNodePoolAutoConfigResourceManagerTags != null && message.hasOwnProperty("desiredNodePoolAutoConfigResourceManagerTags")) + object.desiredNodePoolAutoConfigResourceManagerTags = $root.google.container.v1.ResourceManagerTags.toObject(message.desiredNodePoolAutoConfigResourceManagerTags, options); return object; }; @@ -19549,6 +19662,7 @@ case 15: case 16: case 18: + case 19: break; } if (message.status != null && message.hasOwnProperty("status")) @@ -19709,6 +19823,10 @@ case 18: message.operationType = 18; break; + case "FLEET_FEATURE_UPGRADE": + case 19: + message.operationType = 19; + break; } switch (object.status) { default: @@ -19924,6 +20042,7 @@ * @property {number} SET_NETWORK_POLICY=15 SET_NETWORK_POLICY value * @property {number} SET_MAINTENANCE_POLICY=16 SET_MAINTENANCE_POLICY value * @property {number} RESIZE_CLUSTER=18 RESIZE_CLUSTER value + * @property {number} FLEET_FEATURE_UPGRADE=19 FLEET_FEATURE_UPGRADE value */ Operation.Type = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -19945,6 +20064,7 @@ values[valuesById[15] = "SET_NETWORK_POLICY"] = 15; values[valuesById[16] = "SET_MAINTENANCE_POLICY"] = 16; values[valuesById[18] = "RESIZE_CLUSTER"] = 18; + values[valuesById[19] = "FLEET_FEATURE_UPGRADE"] = 19; return values; })(); @@ -21500,6 +21620,7 @@ * @property {string|null} [machineType] UpdateNodePoolRequest machineType * @property {string|null} [diskType] UpdateNodePoolRequest diskType * @property {number|Long|null} [diskSizeGb] UpdateNodePoolRequest diskSizeGb + * @property {google.container.v1.IResourceManagerTags|null} [resourceManagerTags] UpdateNodePoolRequest resourceManagerTags */ /** @@ -21734,6 +21855,14 @@ */ UpdateNodePoolRequest.prototype.diskSizeGb = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * UpdateNodePoolRequest resourceManagerTags. + * @member {google.container.v1.IResourceManagerTags|null|undefined} resourceManagerTags + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.resourceManagerTags = null; + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @function create @@ -21813,6 +21942,8 @@ writer.uint32(/* id 37, wireType 2 =*/298).string(message.diskType); if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) writer.uint32(/* id 38, wireType 0 =*/304).int64(message.diskSizeGb); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + $root.google.container.v1.ResourceManagerTags.encode(message.resourceManagerTags, writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim(); return writer; }; @@ -21957,6 +22088,10 @@ message.diskSizeGb = reader.int64(); break; } + case 39: { + message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -22107,6 +22242,11 @@ if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) if (!$util.isInteger(message.diskSizeGb) && !(message.diskSizeGb && $util.isInteger(message.diskSizeGb.low) && $util.isInteger(message.diskSizeGb.high))) return "diskSizeGb: integer|Long expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + var error = $root.google.container.v1.ResourceManagerTags.verify(message.resourceManagerTags); + if (error) + return "resourceManagerTags." + error; + } return null; }; @@ -22233,6 +22373,11 @@ message.diskSizeGb = object.diskSizeGb; else if (typeof object.diskSizeGb === "object") message.diskSizeGb = new $util.LongBits(object.diskSizeGb.low >>> 0, object.diskSizeGb.high >>> 0).toNumber(); + if (object.resourceManagerTags != null) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.resourceManagerTags: object expected"); + message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.fromObject(object.resourceManagerTags); + } return message; }; @@ -22282,6 +22427,7 @@ object.diskSizeGb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.diskSizeGb = options.longs === String ? "0" : 0; + object.resourceManagerTags = null; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; @@ -22343,6 +22489,8 @@ object.diskSizeGb = options.longs === String ? String(message.diskSizeGb) : message.diskSizeGb; else object.diskSizeGb = options.longs === String ? $util.Long.prototype.toString.call(message.diskSizeGb) : options.longs === Number ? new $util.LongBits(message.diskSizeGb.low >>> 0, message.diskSizeGb.high >>> 0).toNumber() : message.diskSizeGb; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) + object.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.toObject(message.resourceManagerTags, options); return object; }; @@ -53644,6 +53792,487 @@ return EphemeralStorageLocalSsdConfig; })(); + v1.ResourceManagerTags = (function() { + + /** + * Properties of a ResourceManagerTags. + * @memberof google.container.v1 + * @interface IResourceManagerTags + * @property {Object.|null} [tags] ResourceManagerTags tags + */ + + /** + * Constructs a new ResourceManagerTags. + * @memberof google.container.v1 + * @classdesc Represents a ResourceManagerTags. + * @implements IResourceManagerTags + * @constructor + * @param {google.container.v1.IResourceManagerTags=} [properties] Properties to set + */ + function ResourceManagerTags(properties) { + this.tags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceManagerTags tags. + * @member {Object.} tags + * @memberof google.container.v1.ResourceManagerTags + * @instance + */ + ResourceManagerTags.prototype.tags = $util.emptyObject; + + /** + * Creates a new ResourceManagerTags instance using the specified properties. + * @function create + * @memberof google.container.v1.ResourceManagerTags + * @static + * @param {google.container.v1.IResourceManagerTags=} [properties] Properties to set + * @returns {google.container.v1.ResourceManagerTags} ResourceManagerTags instance + */ + ResourceManagerTags.create = function create(properties) { + return new ResourceManagerTags(properties); + }; + + /** + * Encodes the specified ResourceManagerTags message. Does not implicitly {@link google.container.v1.ResourceManagerTags.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ResourceManagerTags + * @static + * @param {google.container.v1.IResourceManagerTags} message ResourceManagerTags message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceManagerTags.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified ResourceManagerTags message, length delimited. Does not implicitly {@link google.container.v1.ResourceManagerTags.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ResourceManagerTags + * @static + * @param {google.container.v1.IResourceManagerTags} message ResourceManagerTags message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceManagerTags.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceManagerTags message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ResourceManagerTags + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ResourceManagerTags} ResourceManagerTags + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceManagerTags.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ResourceManagerTags(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.tags === $util.emptyObject) + message.tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceManagerTags message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ResourceManagerTags + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ResourceManagerTags} ResourceManagerTags + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceManagerTags.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceManagerTags message. + * @function verify + * @memberof google.container.v1.ResourceManagerTags + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceManagerTags.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a ResourceManagerTags message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ResourceManagerTags + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ResourceManagerTags} ResourceManagerTags + */ + ResourceManagerTags.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ResourceManagerTags) + return object; + var message = new $root.google.container.v1.ResourceManagerTags(); + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".google.container.v1.ResourceManagerTags.tags: object expected"); + message.tags = {}; + for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + message.tags[keys[i]] = String(object.tags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a ResourceManagerTags message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ResourceManagerTags + * @static + * @param {google.container.v1.ResourceManagerTags} message ResourceManagerTags + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceManagerTags.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.tags = {}; + var keys2; + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (var j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; + } + return object; + }; + + /** + * Converts this ResourceManagerTags to JSON. + * @function toJSON + * @memberof google.container.v1.ResourceManagerTags + * @instance + * @returns {Object.} JSON object + */ + ResourceManagerTags.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceManagerTags + * @function getTypeUrl + * @memberof google.container.v1.ResourceManagerTags + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceManagerTags.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ResourceManagerTags"; + }; + + return ResourceManagerTags; + })(); + + v1.EnterpriseConfig = (function() { + + /** + * Properties of an EnterpriseConfig. + * @memberof google.container.v1 + * @interface IEnterpriseConfig + * @property {google.container.v1.EnterpriseConfig.ClusterTier|null} [clusterTier] EnterpriseConfig clusterTier + */ + + /** + * Constructs a new EnterpriseConfig. + * @memberof google.container.v1 + * @classdesc Represents an EnterpriseConfig. + * @implements IEnterpriseConfig + * @constructor + * @param {google.container.v1.IEnterpriseConfig=} [properties] Properties to set + */ + function EnterpriseConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnterpriseConfig clusterTier. + * @member {google.container.v1.EnterpriseConfig.ClusterTier} clusterTier + * @memberof google.container.v1.EnterpriseConfig + * @instance + */ + EnterpriseConfig.prototype.clusterTier = 0; + + /** + * Creates a new EnterpriseConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.EnterpriseConfig + * @static + * @param {google.container.v1.IEnterpriseConfig=} [properties] Properties to set + * @returns {google.container.v1.EnterpriseConfig} EnterpriseConfig instance + */ + EnterpriseConfig.create = function create(properties) { + return new EnterpriseConfig(properties); + }; + + /** + * Encodes the specified EnterpriseConfig message. Does not implicitly {@link google.container.v1.EnterpriseConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.EnterpriseConfig + * @static + * @param {google.container.v1.IEnterpriseConfig} message EnterpriseConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnterpriseConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.clusterTier != null && Object.hasOwnProperty.call(message, "clusterTier")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.clusterTier); + return writer; + }; + + /** + * Encodes the specified EnterpriseConfig message, length delimited. Does not implicitly {@link google.container.v1.EnterpriseConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.EnterpriseConfig + * @static + * @param {google.container.v1.IEnterpriseConfig} message EnterpriseConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnterpriseConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnterpriseConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.EnterpriseConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.EnterpriseConfig} EnterpriseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnterpriseConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.EnterpriseConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.clusterTier = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnterpriseConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.EnterpriseConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.EnterpriseConfig} EnterpriseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnterpriseConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnterpriseConfig message. + * @function verify + * @memberof google.container.v1.EnterpriseConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnterpriseConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.clusterTier != null && message.hasOwnProperty("clusterTier")) + switch (message.clusterTier) { + default: + return "clusterTier: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an EnterpriseConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.EnterpriseConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.EnterpriseConfig} EnterpriseConfig + */ + EnterpriseConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.EnterpriseConfig) + return object; + var message = new $root.google.container.v1.EnterpriseConfig(); + switch (object.clusterTier) { + default: + if (typeof object.clusterTier === "number") { + message.clusterTier = object.clusterTier; + break; + } + break; + case "CLUSTER_TIER_UNSPECIFIED": + case 0: + message.clusterTier = 0; + break; + case "STANDARD": + case 1: + message.clusterTier = 1; + break; + case "ENTERPRISE": + case 2: + message.clusterTier = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an EnterpriseConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.EnterpriseConfig + * @static + * @param {google.container.v1.EnterpriseConfig} message EnterpriseConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnterpriseConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.clusterTier = options.enums === String ? "CLUSTER_TIER_UNSPECIFIED" : 0; + if (message.clusterTier != null && message.hasOwnProperty("clusterTier")) + object.clusterTier = options.enums === String ? $root.google.container.v1.EnterpriseConfig.ClusterTier[message.clusterTier] === undefined ? message.clusterTier : $root.google.container.v1.EnterpriseConfig.ClusterTier[message.clusterTier] : message.clusterTier; + return object; + }; + + /** + * Converts this EnterpriseConfig to JSON. + * @function toJSON + * @memberof google.container.v1.EnterpriseConfig + * @instance + * @returns {Object.} JSON object + */ + EnterpriseConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnterpriseConfig + * @function getTypeUrl + * @memberof google.container.v1.EnterpriseConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnterpriseConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.EnterpriseConfig"; + }; + + /** + * ClusterTier enum. + * @name google.container.v1.EnterpriseConfig.ClusterTier + * @enum {number} + * @property {number} CLUSTER_TIER_UNSPECIFIED=0 CLUSTER_TIER_UNSPECIFIED value + * @property {number} STANDARD=1 STANDARD value + * @property {number} ENTERPRISE=2 ENTERPRISE value + */ + EnterpriseConfig.ClusterTier = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CLUSTER_TIER_UNSPECIFIED"] = 0; + values[valuesById[1] = "STANDARD"] = 1; + values[valuesById[2] = "ENTERPRISE"] = 2; + return values; + })(); + + return EnterpriseConfig; + })(); + return v1; })(); @@ -55767,6 +56396,7 @@ * @property {google.container.v1beta1.IEphemeralStorageLocalSsdConfig|null} [ephemeralStorageLocalSsdConfig] NodeConfig ephemeralStorageLocalSsdConfig * @property {google.container.v1beta1.ISoleTenantConfig|null} [soleTenantConfig] NodeConfig soleTenantConfig * @property {google.container.v1beta1.IHostMaintenancePolicy|null} [hostMaintenancePolicy] NodeConfig hostMaintenancePolicy + * @property {google.container.v1beta1.IResourceManagerTags|null} [resourceManagerTags] NodeConfig resourceManagerTags * @property {boolean|null} [enableConfidentialStorage] NodeConfig enableConfidentialStorage */ @@ -56080,6 +56710,14 @@ */ NodeConfig.prototype.hostMaintenancePolicy = null; + /** + * NodeConfig resourceManagerTags. + * @member {google.container.v1beta1.IResourceManagerTags|null|undefined} resourceManagerTags + * @memberof google.container.v1beta1.NodeConfig + * @instance + */ + NodeConfig.prototype.resourceManagerTags = null; + /** * NodeConfig enableConfidentialStorage. * @member {boolean} enableConfidentialStorage @@ -56205,6 +56843,8 @@ $root.google.container.v1beta1.SoleTenantConfig.encode(message.soleTenantConfig, writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); if (message.hostMaintenancePolicy != null && Object.hasOwnProperty.call(message, "hostMaintenancePolicy")) $root.google.container.v1beta1.HostMaintenancePolicy.encode(message.hostMaintenancePolicy, writer.uint32(/* id 44, wireType 2 =*/354).fork()).ldelim(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + $root.google.container.v1beta1.ResourceManagerTags.encode(message.resourceManagerTags, writer.uint32(/* id 45, wireType 2 =*/362).fork()).ldelim(); if (message.enableConfidentialStorage != null && Object.hasOwnProperty.call(message, "enableConfidentialStorage")) writer.uint32(/* id 46, wireType 0 =*/368).bool(message.enableConfidentialStorage); return writer; @@ -56450,6 +57090,10 @@ message.hostMaintenancePolicy = $root.google.container.v1beta1.HostMaintenancePolicy.decode(reader, reader.uint32()); break; } + case 45: { + message.resourceManagerTags = $root.google.container.v1beta1.ResourceManagerTags.decode(reader, reader.uint32()); + break; + } case 46: { message.enableConfidentialStorage = reader.bool(); break; @@ -56672,6 +57316,11 @@ if (error) return "hostMaintenancePolicy." + error; } + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + var error = $root.google.container.v1beta1.ResourceManagerTags.verify(message.resourceManagerTags); + if (error) + return "resourceManagerTags." + error; + } if (message.enableConfidentialStorage != null && message.hasOwnProperty("enableConfidentialStorage")) if (typeof message.enableConfidentialStorage !== "boolean") return "enableConfidentialStorage: boolean expected"; @@ -56857,6 +57506,11 @@ throw TypeError(".google.container.v1beta1.NodeConfig.hostMaintenancePolicy: object expected"); message.hostMaintenancePolicy = $root.google.container.v1beta1.HostMaintenancePolicy.fromObject(object.hostMaintenancePolicy); } + if (object.resourceManagerTags != null) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.container.v1beta1.NodeConfig.resourceManagerTags: object expected"); + message.resourceManagerTags = $root.google.container.v1beta1.ResourceManagerTags.fromObject(object.resourceManagerTags); + } if (object.enableConfidentialStorage != null) message.enableConfidentialStorage = Boolean(object.enableConfidentialStorage); return message; @@ -56915,6 +57569,7 @@ object.ephemeralStorageLocalSsdConfig = null; object.soleTenantConfig = null; object.hostMaintenancePolicy = null; + object.resourceManagerTags = null; object.enableConfidentialStorage = false; } if (message.machineType != null && message.hasOwnProperty("machineType")) @@ -57014,6 +57669,8 @@ object.soleTenantConfig = $root.google.container.v1beta1.SoleTenantConfig.toObject(message.soleTenantConfig, options); if (message.hostMaintenancePolicy != null && message.hasOwnProperty("hostMaintenancePolicy")) object.hostMaintenancePolicy = $root.google.container.v1beta1.HostMaintenancePolicy.toObject(message.hostMaintenancePolicy, options); + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) + object.resourceManagerTags = $root.google.container.v1beta1.ResourceManagerTags.toObject(message.resourceManagerTags, options); if (message.enableConfidentialStorage != null && message.hasOwnProperty("enableConfidentialStorage")) object.enableConfidentialStorage = message.enableConfidentialStorage; return object; @@ -60720,6 +61377,7 @@ * @memberof google.container.v1beta1 * @interface IHostMaintenancePolicy * @property {google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval|null} [maintenanceInterval] HostMaintenancePolicy maintenanceInterval + * @property {google.container.v1beta1.HostMaintenancePolicy.IOpportunisticMaintenanceStrategy|null} [opportunisticMaintenanceStrategy] HostMaintenancePolicy opportunisticMaintenanceStrategy */ /** @@ -60745,6 +61403,14 @@ */ HostMaintenancePolicy.prototype.maintenanceInterval = null; + /** + * HostMaintenancePolicy opportunisticMaintenanceStrategy. + * @member {google.container.v1beta1.HostMaintenancePolicy.IOpportunisticMaintenanceStrategy|null|undefined} opportunisticMaintenanceStrategy + * @memberof google.container.v1beta1.HostMaintenancePolicy + * @instance + */ + HostMaintenancePolicy.prototype.opportunisticMaintenanceStrategy = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -60759,6 +61425,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * HostMaintenancePolicy maintenanceStrategy. + * @member {"opportunisticMaintenanceStrategy"|undefined} maintenanceStrategy + * @memberof google.container.v1beta1.HostMaintenancePolicy + * @instance + */ + Object.defineProperty(HostMaintenancePolicy.prototype, "maintenanceStrategy", { + get: $util.oneOfGetter($oneOfFields = ["opportunisticMaintenanceStrategy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new HostMaintenancePolicy instance using the specified properties. * @function create @@ -60785,6 +61462,8 @@ writer = $Writer.create(); if (message.maintenanceInterval != null && Object.hasOwnProperty.call(message, "maintenanceInterval")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maintenanceInterval); + if (message.opportunisticMaintenanceStrategy != null && Object.hasOwnProperty.call(message, "opportunisticMaintenanceStrategy")) + $root.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.encode(message.opportunisticMaintenanceStrategy, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -60823,6 +61502,10 @@ message.maintenanceInterval = reader.int32(); break; } + case 2: { + message.opportunisticMaintenanceStrategy = $root.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -60870,6 +61553,14 @@ break; } } + if (message.opportunisticMaintenanceStrategy != null && message.hasOwnProperty("opportunisticMaintenanceStrategy")) { + properties.maintenanceStrategy = 1; + { + var error = $root.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.verify(message.opportunisticMaintenanceStrategy); + if (error) + return "opportunisticMaintenanceStrategy." + error; + } + } return null; }; @@ -60905,6 +61596,11 @@ message.maintenanceInterval = 2; break; } + if (object.opportunisticMaintenanceStrategy != null) { + if (typeof object.opportunisticMaintenanceStrategy !== "object") + throw TypeError(".google.container.v1beta1.HostMaintenancePolicy.opportunisticMaintenanceStrategy: object expected"); + message.opportunisticMaintenanceStrategy = $root.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.fromObject(object.opportunisticMaintenanceStrategy); + } return message; }; @@ -60926,6 +61622,11 @@ if (options.oneofs) object._maintenanceInterval = "maintenanceInterval"; } + if (message.opportunisticMaintenanceStrategy != null && message.hasOwnProperty("opportunisticMaintenanceStrategy")) { + object.opportunisticMaintenanceStrategy = $root.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.toObject(message.opportunisticMaintenanceStrategy, options); + if (options.oneofs) + object.maintenanceStrategy = "opportunisticMaintenanceStrategy"; + } return object; }; @@ -60971,6 +61672,325 @@ return values; })(); + HostMaintenancePolicy.OpportunisticMaintenanceStrategy = (function() { + + /** + * Properties of an OpportunisticMaintenanceStrategy. + * @memberof google.container.v1beta1.HostMaintenancePolicy + * @interface IOpportunisticMaintenanceStrategy + * @property {google.protobuf.IDuration|null} [nodeIdleTimeWindow] OpportunisticMaintenanceStrategy nodeIdleTimeWindow + * @property {google.protobuf.IDuration|null} [maintenanceAvailabilityWindow] OpportunisticMaintenanceStrategy maintenanceAvailabilityWindow + * @property {number|Long|null} [minNodesPerPool] OpportunisticMaintenanceStrategy minNodesPerPool + */ + + /** + * Constructs a new OpportunisticMaintenanceStrategy. + * @memberof google.container.v1beta1.HostMaintenancePolicy + * @classdesc Represents an OpportunisticMaintenanceStrategy. + * @implements IOpportunisticMaintenanceStrategy + * @constructor + * @param {google.container.v1beta1.HostMaintenancePolicy.IOpportunisticMaintenanceStrategy=} [properties] Properties to set + */ + function OpportunisticMaintenanceStrategy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OpportunisticMaintenanceStrategy nodeIdleTimeWindow. + * @member {google.protobuf.IDuration|null|undefined} nodeIdleTimeWindow + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @instance + */ + OpportunisticMaintenanceStrategy.prototype.nodeIdleTimeWindow = null; + + /** + * OpportunisticMaintenanceStrategy maintenanceAvailabilityWindow. + * @member {google.protobuf.IDuration|null|undefined} maintenanceAvailabilityWindow + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @instance + */ + OpportunisticMaintenanceStrategy.prototype.maintenanceAvailabilityWindow = null; + + /** + * OpportunisticMaintenanceStrategy minNodesPerPool. + * @member {number|Long|null|undefined} minNodesPerPool + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @instance + */ + OpportunisticMaintenanceStrategy.prototype.minNodesPerPool = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * OpportunisticMaintenanceStrategy _nodeIdleTimeWindow. + * @member {"nodeIdleTimeWindow"|undefined} _nodeIdleTimeWindow + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @instance + */ + Object.defineProperty(OpportunisticMaintenanceStrategy.prototype, "_nodeIdleTimeWindow", { + get: $util.oneOfGetter($oneOfFields = ["nodeIdleTimeWindow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * OpportunisticMaintenanceStrategy _maintenanceAvailabilityWindow. + * @member {"maintenanceAvailabilityWindow"|undefined} _maintenanceAvailabilityWindow + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @instance + */ + Object.defineProperty(OpportunisticMaintenanceStrategy.prototype, "_maintenanceAvailabilityWindow", { + get: $util.oneOfGetter($oneOfFields = ["maintenanceAvailabilityWindow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * OpportunisticMaintenanceStrategy _minNodesPerPool. + * @member {"minNodesPerPool"|undefined} _minNodesPerPool + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @instance + */ + Object.defineProperty(OpportunisticMaintenanceStrategy.prototype, "_minNodesPerPool", { + get: $util.oneOfGetter($oneOfFields = ["minNodesPerPool"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new OpportunisticMaintenanceStrategy instance using the specified properties. + * @function create + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @static + * @param {google.container.v1beta1.HostMaintenancePolicy.IOpportunisticMaintenanceStrategy=} [properties] Properties to set + * @returns {google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy} OpportunisticMaintenanceStrategy instance + */ + OpportunisticMaintenanceStrategy.create = function create(properties) { + return new OpportunisticMaintenanceStrategy(properties); + }; + + /** + * Encodes the specified OpportunisticMaintenanceStrategy message. Does not implicitly {@link google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.verify|verify} messages. + * @function encode + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @static + * @param {google.container.v1beta1.HostMaintenancePolicy.IOpportunisticMaintenanceStrategy} message OpportunisticMaintenanceStrategy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OpportunisticMaintenanceStrategy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeIdleTimeWindow != null && Object.hasOwnProperty.call(message, "nodeIdleTimeWindow")) + $root.google.protobuf.Duration.encode(message.nodeIdleTimeWindow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.maintenanceAvailabilityWindow != null && Object.hasOwnProperty.call(message, "maintenanceAvailabilityWindow")) + $root.google.protobuf.Duration.encode(message.maintenanceAvailabilityWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.minNodesPerPool != null && Object.hasOwnProperty.call(message, "minNodesPerPool")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.minNodesPerPool); + return writer; + }; + + /** + * Encodes the specified OpportunisticMaintenanceStrategy message, length delimited. Does not implicitly {@link google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @static + * @param {google.container.v1beta1.HostMaintenancePolicy.IOpportunisticMaintenanceStrategy} message OpportunisticMaintenanceStrategy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OpportunisticMaintenanceStrategy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OpportunisticMaintenanceStrategy message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy} OpportunisticMaintenanceStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OpportunisticMaintenanceStrategy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.nodeIdleTimeWindow = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 2: { + message.maintenanceAvailabilityWindow = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 3: { + message.minNodesPerPool = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OpportunisticMaintenanceStrategy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy} OpportunisticMaintenanceStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OpportunisticMaintenanceStrategy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OpportunisticMaintenanceStrategy message. + * @function verify + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OpportunisticMaintenanceStrategy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.nodeIdleTimeWindow != null && message.hasOwnProperty("nodeIdleTimeWindow")) { + properties._nodeIdleTimeWindow = 1; + { + var error = $root.google.protobuf.Duration.verify(message.nodeIdleTimeWindow); + if (error) + return "nodeIdleTimeWindow." + error; + } + } + if (message.maintenanceAvailabilityWindow != null && message.hasOwnProperty("maintenanceAvailabilityWindow")) { + properties._maintenanceAvailabilityWindow = 1; + { + var error = $root.google.protobuf.Duration.verify(message.maintenanceAvailabilityWindow); + if (error) + return "maintenanceAvailabilityWindow." + error; + } + } + if (message.minNodesPerPool != null && message.hasOwnProperty("minNodesPerPool")) { + properties._minNodesPerPool = 1; + if (!$util.isInteger(message.minNodesPerPool) && !(message.minNodesPerPool && $util.isInteger(message.minNodesPerPool.low) && $util.isInteger(message.minNodesPerPool.high))) + return "minNodesPerPool: integer|Long expected"; + } + return null; + }; + + /** + * Creates an OpportunisticMaintenanceStrategy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy} OpportunisticMaintenanceStrategy + */ + OpportunisticMaintenanceStrategy.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) + return object; + var message = new $root.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy(); + if (object.nodeIdleTimeWindow != null) { + if (typeof object.nodeIdleTimeWindow !== "object") + throw TypeError(".google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.nodeIdleTimeWindow: object expected"); + message.nodeIdleTimeWindow = $root.google.protobuf.Duration.fromObject(object.nodeIdleTimeWindow); + } + if (object.maintenanceAvailabilityWindow != null) { + if (typeof object.maintenanceAvailabilityWindow !== "object") + throw TypeError(".google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.maintenanceAvailabilityWindow: object expected"); + message.maintenanceAvailabilityWindow = $root.google.protobuf.Duration.fromObject(object.maintenanceAvailabilityWindow); + } + if (object.minNodesPerPool != null) + if ($util.Long) + (message.minNodesPerPool = $util.Long.fromValue(object.minNodesPerPool)).unsigned = false; + else if (typeof object.minNodesPerPool === "string") + message.minNodesPerPool = parseInt(object.minNodesPerPool, 10); + else if (typeof object.minNodesPerPool === "number") + message.minNodesPerPool = object.minNodesPerPool; + else if (typeof object.minNodesPerPool === "object") + message.minNodesPerPool = new $util.LongBits(object.minNodesPerPool.low >>> 0, object.minNodesPerPool.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an OpportunisticMaintenanceStrategy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @static + * @param {google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy} message OpportunisticMaintenanceStrategy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OpportunisticMaintenanceStrategy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.nodeIdleTimeWindow != null && message.hasOwnProperty("nodeIdleTimeWindow")) { + object.nodeIdleTimeWindow = $root.google.protobuf.Duration.toObject(message.nodeIdleTimeWindow, options); + if (options.oneofs) + object._nodeIdleTimeWindow = "nodeIdleTimeWindow"; + } + if (message.maintenanceAvailabilityWindow != null && message.hasOwnProperty("maintenanceAvailabilityWindow")) { + object.maintenanceAvailabilityWindow = $root.google.protobuf.Duration.toObject(message.maintenanceAvailabilityWindow, options); + if (options.oneofs) + object._maintenanceAvailabilityWindow = "maintenanceAvailabilityWindow"; + } + if (message.minNodesPerPool != null && message.hasOwnProperty("minNodesPerPool")) { + if (typeof message.minNodesPerPool === "number") + object.minNodesPerPool = options.longs === String ? String(message.minNodesPerPool) : message.minNodesPerPool; + else + object.minNodesPerPool = options.longs === String ? $util.Long.prototype.toString.call(message.minNodesPerPool) : options.longs === Number ? new $util.LongBits(message.minNodesPerPool.low >>> 0, message.minNodesPerPool.high >>> 0).toNumber() : message.minNodesPerPool; + if (options.oneofs) + object._minNodesPerPool = "minNodesPerPool"; + } + return object; + }; + + /** + * Converts this OpportunisticMaintenanceStrategy to JSON. + * @function toJSON + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @instance + * @returns {Object.} JSON object + */ + OpportunisticMaintenanceStrategy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OpportunisticMaintenanceStrategy + * @function getTypeUrl + * @memberof google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OpportunisticMaintenanceStrategy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy"; + }; + + return OpportunisticMaintenanceStrategy; + })(); + return HostMaintenancePolicy; })(); @@ -69840,6 +70860,7 @@ * @property {string|null} [etag] Cluster etag * @property {google.container.v1beta1.IFleet|null} [fleet] Cluster fleet * @property {google.container.v1beta1.ISecurityPostureConfig|null} [securityPostureConfig] Cluster securityPostureConfig + * @property {google.container.v1beta1.IEnterpriseConfig|null} [enterpriseConfig] Cluster enterpriseConfig */ /** @@ -70462,6 +71483,14 @@ */ Cluster.prototype.securityPostureConfig = null; + /** + * Cluster enterpriseConfig. + * @member {google.container.v1beta1.IEnterpriseConfig|null|undefined} enterpriseConfig + * @memberof google.container.v1beta1.Cluster + * @instance + */ + Cluster.prototype.enterpriseConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -70666,6 +71695,8 @@ $root.google.container.v1beta1.K8sBetaAPIConfig.encode(message.enableK8sBetaApis, writer.uint32(/* id 143, wireType 2 =*/1146).fork()).ldelim(); if (message.securityPostureConfig != null && Object.hasOwnProperty.call(message, "securityPostureConfig")) $root.google.container.v1beta1.SecurityPostureConfig.encode(message.securityPostureConfig, writer.uint32(/* id 145, wireType 2 =*/1162).fork()).ldelim(); + if (message.enterpriseConfig != null && Object.hasOwnProperty.call(message, "enterpriseConfig")) + $root.google.container.v1beta1.EnterpriseConfig.encode(message.enterpriseConfig, writer.uint32(/* id 149, wireType 2 =*/1194).fork()).ldelim(); return writer; }; @@ -71027,6 +72058,10 @@ message.securityPostureConfig = $root.google.container.v1beta1.SecurityPostureConfig.decode(reader, reader.uint32()); break; } + case 149: { + message.enterpriseConfig = $root.google.container.v1beta1.EnterpriseConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -71409,6 +72444,11 @@ if (error) return "securityPostureConfig." + error; } + if (message.enterpriseConfig != null && message.hasOwnProperty("enterpriseConfig")) { + var error = $root.google.container.v1beta1.EnterpriseConfig.verify(message.enterpriseConfig); + if (error) + return "enterpriseConfig." + error; + } return null; }; @@ -71759,6 +72799,11 @@ throw TypeError(".google.container.v1beta1.Cluster.securityPostureConfig: object expected"); message.securityPostureConfig = $root.google.container.v1beta1.SecurityPostureConfig.fromObject(object.securityPostureConfig); } + if (object.enterpriseConfig != null) { + if (typeof object.enterpriseConfig !== "object") + throw TypeError(".google.container.v1beta1.Cluster.enterpriseConfig: object expected"); + message.enterpriseConfig = $root.google.container.v1beta1.EnterpriseConfig.fromObject(object.enterpriseConfig); + } return message; }; @@ -71852,6 +72897,7 @@ object.fleet = null; object.enableK8sBetaApis = null; object.securityPostureConfig = null; + object.enterpriseConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -72025,6 +73071,8 @@ object.enableK8sBetaApis = $root.google.container.v1beta1.K8sBetaAPIConfig.toObject(message.enableK8sBetaApis, options); if (message.securityPostureConfig != null && message.hasOwnProperty("securityPostureConfig")) object.securityPostureConfig = $root.google.container.v1beta1.SecurityPostureConfig.toObject(message.securityPostureConfig, options); + if (message.enterpriseConfig != null && message.hasOwnProperty("enterpriseConfig")) + object.enterpriseConfig = $root.google.container.v1beta1.EnterpriseConfig.toObject(message.enterpriseConfig, options); return object; }; @@ -73706,6 +74754,7 @@ * @memberof google.container.v1beta1 * @interface INodePoolAutoConfig * @property {google.container.v1beta1.INetworkTags|null} [networkTags] NodePoolAutoConfig networkTags + * @property {google.container.v1beta1.IResourceManagerTags|null} [resourceManagerTags] NodePoolAutoConfig resourceManagerTags */ /** @@ -73731,6 +74780,14 @@ */ NodePoolAutoConfig.prototype.networkTags = null; + /** + * NodePoolAutoConfig resourceManagerTags. + * @member {google.container.v1beta1.IResourceManagerTags|null|undefined} resourceManagerTags + * @memberof google.container.v1beta1.NodePoolAutoConfig + * @instance + */ + NodePoolAutoConfig.prototype.resourceManagerTags = null; + /** * Creates a new NodePoolAutoConfig instance using the specified properties. * @function create @@ -73757,6 +74814,8 @@ writer = $Writer.create(); if (message.networkTags != null && Object.hasOwnProperty.call(message, "networkTags")) $root.google.container.v1beta1.NetworkTags.encode(message.networkTags, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + $root.google.container.v1beta1.ResourceManagerTags.encode(message.resourceManagerTags, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -73795,6 +74854,10 @@ message.networkTags = $root.google.container.v1beta1.NetworkTags.decode(reader, reader.uint32()); break; } + case 2: { + message.resourceManagerTags = $root.google.container.v1beta1.ResourceManagerTags.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -73835,6 +74898,11 @@ if (error) return "networkTags." + error; } + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + var error = $root.google.container.v1beta1.ResourceManagerTags.verify(message.resourceManagerTags); + if (error) + return "resourceManagerTags." + error; + } return null; }; @@ -73855,6 +74923,11 @@ throw TypeError(".google.container.v1beta1.NodePoolAutoConfig.networkTags: object expected"); message.networkTags = $root.google.container.v1beta1.NetworkTags.fromObject(object.networkTags); } + if (object.resourceManagerTags != null) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.container.v1beta1.NodePoolAutoConfig.resourceManagerTags: object expected"); + message.resourceManagerTags = $root.google.container.v1beta1.ResourceManagerTags.fromObject(object.resourceManagerTags); + } return message; }; @@ -73871,10 +74944,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.networkTags = null; + object.resourceManagerTags = null; + } if (message.networkTags != null && message.hasOwnProperty("networkTags")) object.networkTags = $root.google.container.v1beta1.NetworkTags.toObject(message.networkTags, options); + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) + object.resourceManagerTags = $root.google.container.v1beta1.ResourceManagerTags.toObject(message.resourceManagerTags, options); return object; }; @@ -73970,6 +75047,8 @@ * @property {google.container.v1beta1.IWorkloadPolicyConfig|null} [desiredAutopilotWorkloadPolicyConfig] ClusterUpdate desiredAutopilotWorkloadPolicyConfig * @property {google.container.v1beta1.IK8sBetaAPIConfig|null} [desiredK8sBetaApis] ClusterUpdate desiredK8sBetaApis * @property {google.container.v1beta1.IHostMaintenancePolicy|null} [desiredHostMaintenancePolicy] ClusterUpdate desiredHostMaintenancePolicy + * @property {google.container.v1beta1.IResourceManagerTags|null} [desiredNodePoolAutoConfigResourceManagerTags] ClusterUpdate desiredNodePoolAutoConfigResourceManagerTags + * @property {google.container.v1beta1.InTransitEncryptionConfig|null} [desiredInTransitEncryptionConfig] ClusterUpdate desiredInTransitEncryptionConfig */ /** @@ -74444,6 +75523,22 @@ */ ClusterUpdate.prototype.desiredHostMaintenancePolicy = null; + /** + * ClusterUpdate desiredNodePoolAutoConfigResourceManagerTags. + * @member {google.container.v1beta1.IResourceManagerTags|null|undefined} desiredNodePoolAutoConfigResourceManagerTags + * @memberof google.container.v1beta1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredNodePoolAutoConfigResourceManagerTags = null; + + /** + * ClusterUpdate desiredInTransitEncryptionConfig. + * @member {google.container.v1beta1.InTransitEncryptionConfig|null|undefined} desiredInTransitEncryptionConfig + * @memberof google.container.v1beta1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredInTransitEncryptionConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -74480,6 +75575,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * ClusterUpdate _desiredInTransitEncryptionConfig. + * @member {"desiredInTransitEncryptionConfig"|undefined} _desiredInTransitEncryptionConfig + * @memberof google.container.v1beta1.ClusterUpdate + * @instance + */ + Object.defineProperty(ClusterUpdate.prototype, "_desiredInTransitEncryptionConfig", { + get: $util.oneOfGetter($oneOfFields = ["desiredInTransitEncryptionConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new ClusterUpdate instance using the specified properties. * @function create @@ -74619,6 +75725,10 @@ $root.google.container.v1beta1.K8sBetaAPIConfig.encode(message.desiredK8sBetaApis, writer.uint32(/* id 131, wireType 2 =*/1050).fork()).ldelim(); if (message.desiredHostMaintenancePolicy != null && Object.hasOwnProperty.call(message, "desiredHostMaintenancePolicy")) $root.google.container.v1beta1.HostMaintenancePolicy.encode(message.desiredHostMaintenancePolicy, writer.uint32(/* id 132, wireType 2 =*/1058).fork()).ldelim(); + if (message.desiredNodePoolAutoConfigResourceManagerTags != null && Object.hasOwnProperty.call(message, "desiredNodePoolAutoConfigResourceManagerTags")) + $root.google.container.v1beta1.ResourceManagerTags.encode(message.desiredNodePoolAutoConfigResourceManagerTags, writer.uint32(/* id 136, wireType 2 =*/1090).fork()).ldelim(); + if (message.desiredInTransitEncryptionConfig != null && Object.hasOwnProperty.call(message, "desiredInTransitEncryptionConfig")) + writer.uint32(/* id 137, wireType 0 =*/1096).int32(message.desiredInTransitEncryptionConfig); return writer; }; @@ -74883,6 +75993,14 @@ message.desiredHostMaintenancePolicy = $root.google.container.v1beta1.HostMaintenancePolicy.decode(reader, reader.uint32()); break; } + case 136: { + message.desiredNodePoolAutoConfigResourceManagerTags = $root.google.container.v1beta1.ResourceManagerTags.decode(reader, reader.uint32()); + break; + } + case 137: { + message.desiredInTransitEncryptionConfig = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -75208,6 +76326,22 @@ if (error) return "desiredHostMaintenancePolicy." + error; } + if (message.desiredNodePoolAutoConfigResourceManagerTags != null && message.hasOwnProperty("desiredNodePoolAutoConfigResourceManagerTags")) { + var error = $root.google.container.v1beta1.ResourceManagerTags.verify(message.desiredNodePoolAutoConfigResourceManagerTags); + if (error) + return "desiredNodePoolAutoConfigResourceManagerTags." + error; + } + if (message.desiredInTransitEncryptionConfig != null && message.hasOwnProperty("desiredInTransitEncryptionConfig")) { + properties._desiredInTransitEncryptionConfig = 1; + switch (message.desiredInTransitEncryptionConfig) { + default: + return "desiredInTransitEncryptionConfig: enum value expected"; + case 0: + case 1: + case 2: + break; + } + } return null; }; @@ -75532,6 +76666,31 @@ throw TypeError(".google.container.v1beta1.ClusterUpdate.desiredHostMaintenancePolicy: object expected"); message.desiredHostMaintenancePolicy = $root.google.container.v1beta1.HostMaintenancePolicy.fromObject(object.desiredHostMaintenancePolicy); } + if (object.desiredNodePoolAutoConfigResourceManagerTags != null) { + if (typeof object.desiredNodePoolAutoConfigResourceManagerTags !== "object") + throw TypeError(".google.container.v1beta1.ClusterUpdate.desiredNodePoolAutoConfigResourceManagerTags: object expected"); + message.desiredNodePoolAutoConfigResourceManagerTags = $root.google.container.v1beta1.ResourceManagerTags.fromObject(object.desiredNodePoolAutoConfigResourceManagerTags); + } + switch (object.desiredInTransitEncryptionConfig) { + default: + if (typeof object.desiredInTransitEncryptionConfig === "number") { + message.desiredInTransitEncryptionConfig = object.desiredInTransitEncryptionConfig; + break; + } + break; + case "IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED": + case 0: + message.desiredInTransitEncryptionConfig = 0; + break; + case "IN_TRANSIT_ENCRYPTION_DISABLED": + case 1: + message.desiredInTransitEncryptionConfig = 1; + break; + case "IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT": + case 2: + message.desiredInTransitEncryptionConfig = 2; + break; + } return message; }; @@ -75604,6 +76763,7 @@ object.desiredAutopilotWorkloadPolicyConfig = null; object.desiredK8sBetaApis = null; object.desiredHostMaintenancePolicy = null; + object.desiredNodePoolAutoConfigResourceManagerTags = null; } if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) object.desiredNodeVersion = message.desiredNodeVersion; @@ -75731,6 +76891,13 @@ object.desiredK8sBetaApis = $root.google.container.v1beta1.K8sBetaAPIConfig.toObject(message.desiredK8sBetaApis, options); if (message.desiredHostMaintenancePolicy != null && message.hasOwnProperty("desiredHostMaintenancePolicy")) object.desiredHostMaintenancePolicy = $root.google.container.v1beta1.HostMaintenancePolicy.toObject(message.desiredHostMaintenancePolicy, options); + if (message.desiredNodePoolAutoConfigResourceManagerTags != null && message.hasOwnProperty("desiredNodePoolAutoConfigResourceManagerTags")) + object.desiredNodePoolAutoConfigResourceManagerTags = $root.google.container.v1beta1.ResourceManagerTags.toObject(message.desiredNodePoolAutoConfigResourceManagerTags, options); + if (message.desiredInTransitEncryptionConfig != null && message.hasOwnProperty("desiredInTransitEncryptionConfig")) { + object.desiredInTransitEncryptionConfig = options.enums === String ? $root.google.container.v1beta1.InTransitEncryptionConfig[message.desiredInTransitEncryptionConfig] === undefined ? message.desiredInTransitEncryptionConfig : $root.google.container.v1beta1.InTransitEncryptionConfig[message.desiredInTransitEncryptionConfig] : message.desiredInTransitEncryptionConfig; + if (options.oneofs) + object._desiredInTransitEncryptionConfig = "desiredInTransitEncryptionConfig"; + } return object; }; @@ -76631,6 +77798,7 @@ case 15: case 16: case 18: + case 19: break; } if (message.status != null && message.hasOwnProperty("status")) @@ -76791,6 +77959,10 @@ case 18: message.operationType = 18; break; + case "FLEET_FEATURE_UPGRADE": + case 19: + message.operationType = 19; + break; } switch (object.status) { default: @@ -77006,6 +78178,7 @@ * @property {number} SET_NETWORK_POLICY=15 SET_NETWORK_POLICY value * @property {number} SET_MAINTENANCE_POLICY=16 SET_MAINTENANCE_POLICY value * @property {number} RESIZE_CLUSTER=18 RESIZE_CLUSTER value + * @property {number} FLEET_FEATURE_UPGRADE=19 FLEET_FEATURE_UPGRADE value */ Operation.Type = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -77027,6 +78200,7 @@ values[valuesById[15] = "SET_NETWORK_POLICY"] = 15; values[valuesById[16] = "SET_MAINTENANCE_POLICY"] = 16; values[valuesById[18] = "RESIZE_CLUSTER"] = 18; + values[valuesById[19] = "FLEET_FEATURE_UPGRADE"] = 19; return values; })(); @@ -78582,6 +79756,7 @@ * @property {string|null} [machineType] UpdateNodePoolRequest machineType * @property {string|null} [diskType] UpdateNodePoolRequest diskType * @property {number|Long|null} [diskSizeGb] UpdateNodePoolRequest diskSizeGb + * @property {google.container.v1beta1.IResourceManagerTags|null} [resourceManagerTags] UpdateNodePoolRequest resourceManagerTags */ /** @@ -78816,6 +79991,14 @@ */ UpdateNodePoolRequest.prototype.diskSizeGb = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * UpdateNodePoolRequest resourceManagerTags. + * @member {google.container.v1beta1.IResourceManagerTags|null|undefined} resourceManagerTags + * @memberof google.container.v1beta1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.resourceManagerTags = null; + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @function create @@ -78895,6 +80078,8 @@ writer.uint32(/* id 37, wireType 2 =*/298).string(message.diskType); if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) writer.uint32(/* id 38, wireType 0 =*/304).int64(message.diskSizeGb); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + $root.google.container.v1beta1.ResourceManagerTags.encode(message.resourceManagerTags, writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim(); return writer; }; @@ -79039,6 +80224,10 @@ message.diskSizeGb = reader.int64(); break; } + case 39: { + message.resourceManagerTags = $root.google.container.v1beta1.ResourceManagerTags.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -79189,6 +80378,11 @@ if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) if (!$util.isInteger(message.diskSizeGb) && !(message.diskSizeGb && $util.isInteger(message.diskSizeGb.low) && $util.isInteger(message.diskSizeGb.high))) return "diskSizeGb: integer|Long expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + var error = $root.google.container.v1beta1.ResourceManagerTags.verify(message.resourceManagerTags); + if (error) + return "resourceManagerTags." + error; + } return null; }; @@ -79315,6 +80509,11 @@ message.diskSizeGb = object.diskSizeGb; else if (typeof object.diskSizeGb === "object") message.diskSizeGb = new $util.LongBits(object.diskSizeGb.low >>> 0, object.diskSizeGb.high >>> 0).toNumber(); + if (object.resourceManagerTags != null) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.container.v1beta1.UpdateNodePoolRequest.resourceManagerTags: object expected"); + message.resourceManagerTags = $root.google.container.v1beta1.ResourceManagerTags.fromObject(object.resourceManagerTags); + } return message; }; @@ -79364,6 +80563,7 @@ object.diskSizeGb = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.diskSizeGb = options.longs === String ? "0" : 0; + object.resourceManagerTags = null; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; @@ -79425,6 +80625,8 @@ object.diskSizeGb = options.longs === String ? String(message.diskSizeGb) : message.diskSizeGb; else object.diskSizeGb = options.longs === String ? $util.Long.prototype.toString.call(message.diskSizeGb) : options.longs === Number ? new $util.LongBits(message.diskSizeGb.low >>> 0, message.diskSizeGb.high >>> 0).toNumber() : message.diskSizeGb; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) + object.resourceManagerTags = $root.google.container.v1beta1.ResourceManagerTags.toObject(message.resourceManagerTags, options); return object; }; @@ -88743,6 +89945,7 @@ case 1: case 2: case 3: + case 8: case 4: case 5: case 6: @@ -88807,6 +90010,10 @@ case 3: message.phase = 3; break; + case "WAITING_TO_DRAIN_BLUE_POOL": + case 8: + message.phase = 8; + break; case "DRAINING_BLUE_POOL": case 4: message.phase = 4; @@ -88920,6 +90127,7 @@ * @property {number} UPDATE_STARTED=1 UPDATE_STARTED value * @property {number} CREATING_GREEN_POOL=2 CREATING_GREEN_POOL value * @property {number} CORDONING_BLUE_POOL=3 CORDONING_BLUE_POOL value + * @property {number} WAITING_TO_DRAIN_BLUE_POOL=8 WAITING_TO_DRAIN_BLUE_POOL value * @property {number} DRAINING_BLUE_POOL=4 DRAINING_BLUE_POOL value * @property {number} NODE_POOL_SOAKING=5 NODE_POOL_SOAKING value * @property {number} DELETING_BLUE_POOL=6 DELETING_BLUE_POOL value @@ -88931,6 +90139,7 @@ values[valuesById[1] = "UPDATE_STARTED"] = 1; values[valuesById[2] = "CREATING_GREEN_POOL"] = 2; values[valuesById[3] = "CORDONING_BLUE_POOL"] = 3; + values[valuesById[8] = "WAITING_TO_DRAIN_BLUE_POOL"] = 8; values[valuesById[4] = "DRAINING_BLUE_POOL"] = 4; values[valuesById[5] = "NODE_POOL_SOAKING"] = 5; values[valuesById[6] = "DELETING_BLUE_POOL"] = 6; @@ -98661,6 +99870,7 @@ * @property {boolean|null} [enableMultiNetworking] NetworkConfig enableMultiNetworking * @property {google.container.v1beta1.NetworkConfig.IClusterNetworkPerformanceConfig|null} [networkPerformanceConfig] NetworkConfig networkPerformanceConfig * @property {boolean|null} [enableFqdnNetworkPolicy] NetworkConfig enableFqdnNetworkPolicy + * @property {google.container.v1beta1.InTransitEncryptionConfig|null} [inTransitEncryptionConfig] NetworkConfig inTransitEncryptionConfig */ /** @@ -98782,6 +99992,14 @@ */ NetworkConfig.prototype.enableFqdnNetworkPolicy = null; + /** + * NetworkConfig inTransitEncryptionConfig. + * @member {google.container.v1beta1.InTransitEncryptionConfig|null|undefined} inTransitEncryptionConfig + * @memberof google.container.v1beta1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.inTransitEncryptionConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -98796,6 +100014,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * NetworkConfig _inTransitEncryptionConfig. + * @member {"inTransitEncryptionConfig"|undefined} _inTransitEncryptionConfig + * @memberof google.container.v1beta1.NetworkConfig + * @instance + */ + Object.defineProperty(NetworkConfig.prototype, "_inTransitEncryptionConfig", { + get: $util.oneOfGetter($oneOfFields = ["inTransitEncryptionConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new NetworkConfig instance using the specified properties. * @function create @@ -98846,6 +100075,8 @@ $root.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.encode(message.networkPerformanceConfig, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); if (message.enableFqdnNetworkPolicy != null && Object.hasOwnProperty.call(message, "enableFqdnNetworkPolicy")) writer.uint32(/* id 19, wireType 0 =*/152).bool(message.enableFqdnNetworkPolicy); + if (message.inTransitEncryptionConfig != null && Object.hasOwnProperty.call(message, "inTransitEncryptionConfig")) + writer.uint32(/* id 20, wireType 0 =*/160).int32(message.inTransitEncryptionConfig); return writer; }; @@ -98932,6 +100163,10 @@ message.enableFqdnNetworkPolicy = reader.bool(); break; } + case 20: { + message.inTransitEncryptionConfig = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -99032,6 +100267,17 @@ if (typeof message.enableFqdnNetworkPolicy !== "boolean") return "enableFqdnNetworkPolicy: boolean expected"; } + if (message.inTransitEncryptionConfig != null && message.hasOwnProperty("inTransitEncryptionConfig")) { + properties._inTransitEncryptionConfig = 1; + switch (message.inTransitEncryptionConfig) { + default: + return "inTransitEncryptionConfig: enum value expected"; + case 0: + case 1: + case 2: + break; + } + } return null; }; @@ -99128,6 +100374,26 @@ } if (object.enableFqdnNetworkPolicy != null) message.enableFqdnNetworkPolicy = Boolean(object.enableFqdnNetworkPolicy); + switch (object.inTransitEncryptionConfig) { + default: + if (typeof object.inTransitEncryptionConfig === "number") { + message.inTransitEncryptionConfig = object.inTransitEncryptionConfig; + break; + } + break; + case "IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED": + case 0: + message.inTransitEncryptionConfig = 0; + break; + case "IN_TRANSIT_ENCRYPTION_DISABLED": + case 1: + message.inTransitEncryptionConfig = 1; + break; + case "IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT": + case 2: + message.inTransitEncryptionConfig = 2; + break; + } return message; }; @@ -99187,6 +100453,11 @@ if (options.oneofs) object._enableFqdnNetworkPolicy = "enableFqdnNetworkPolicy"; } + if (message.inTransitEncryptionConfig != null && message.hasOwnProperty("inTransitEncryptionConfig")) { + object.inTransitEncryptionConfig = options.enums === String ? $root.google.container.v1beta1.InTransitEncryptionConfig[message.inTransitEncryptionConfig] === undefined ? message.inTransitEncryptionConfig : $root.google.container.v1beta1.InTransitEncryptionConfig[message.inTransitEncryptionConfig] : message.inTransitEncryptionConfig; + if (options.oneofs) + object._inTransitEncryptionConfig = "inTransitEncryptionConfig"; + } return object; }; @@ -112893,6 +114164,503 @@ return values; })(); + v1beta1.ResourceManagerTags = (function() { + + /** + * Properties of a ResourceManagerTags. + * @memberof google.container.v1beta1 + * @interface IResourceManagerTags + * @property {Object.|null} [tags] ResourceManagerTags tags + */ + + /** + * Constructs a new ResourceManagerTags. + * @memberof google.container.v1beta1 + * @classdesc Represents a ResourceManagerTags. + * @implements IResourceManagerTags + * @constructor + * @param {google.container.v1beta1.IResourceManagerTags=} [properties] Properties to set + */ + function ResourceManagerTags(properties) { + this.tags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceManagerTags tags. + * @member {Object.} tags + * @memberof google.container.v1beta1.ResourceManagerTags + * @instance + */ + ResourceManagerTags.prototype.tags = $util.emptyObject; + + /** + * Creates a new ResourceManagerTags instance using the specified properties. + * @function create + * @memberof google.container.v1beta1.ResourceManagerTags + * @static + * @param {google.container.v1beta1.IResourceManagerTags=} [properties] Properties to set + * @returns {google.container.v1beta1.ResourceManagerTags} ResourceManagerTags instance + */ + ResourceManagerTags.create = function create(properties) { + return new ResourceManagerTags(properties); + }; + + /** + * Encodes the specified ResourceManagerTags message. Does not implicitly {@link google.container.v1beta1.ResourceManagerTags.verify|verify} messages. + * @function encode + * @memberof google.container.v1beta1.ResourceManagerTags + * @static + * @param {google.container.v1beta1.IResourceManagerTags} message ResourceManagerTags message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceManagerTags.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified ResourceManagerTags message, length delimited. Does not implicitly {@link google.container.v1beta1.ResourceManagerTags.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1beta1.ResourceManagerTags + * @static + * @param {google.container.v1beta1.IResourceManagerTags} message ResourceManagerTags message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceManagerTags.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceManagerTags message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1beta1.ResourceManagerTags + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1beta1.ResourceManagerTags} ResourceManagerTags + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceManagerTags.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1beta1.ResourceManagerTags(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.tags === $util.emptyObject) + message.tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceManagerTags message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1beta1.ResourceManagerTags + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1beta1.ResourceManagerTags} ResourceManagerTags + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceManagerTags.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceManagerTags message. + * @function verify + * @memberof google.container.v1beta1.ResourceManagerTags + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceManagerTags.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a ResourceManagerTags message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1beta1.ResourceManagerTags + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1beta1.ResourceManagerTags} ResourceManagerTags + */ + ResourceManagerTags.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1beta1.ResourceManagerTags) + return object; + var message = new $root.google.container.v1beta1.ResourceManagerTags(); + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".google.container.v1beta1.ResourceManagerTags.tags: object expected"); + message.tags = {}; + for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + message.tags[keys[i]] = String(object.tags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a ResourceManagerTags message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1beta1.ResourceManagerTags + * @static + * @param {google.container.v1beta1.ResourceManagerTags} message ResourceManagerTags + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceManagerTags.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.tags = {}; + var keys2; + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (var j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; + } + return object; + }; + + /** + * Converts this ResourceManagerTags to JSON. + * @function toJSON + * @memberof google.container.v1beta1.ResourceManagerTags + * @instance + * @returns {Object.} JSON object + */ + ResourceManagerTags.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceManagerTags + * @function getTypeUrl + * @memberof google.container.v1beta1.ResourceManagerTags + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceManagerTags.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1beta1.ResourceManagerTags"; + }; + + return ResourceManagerTags; + })(); + + v1beta1.EnterpriseConfig = (function() { + + /** + * Properties of an EnterpriseConfig. + * @memberof google.container.v1beta1 + * @interface IEnterpriseConfig + * @property {google.container.v1beta1.EnterpriseConfig.ClusterTier|null} [clusterTier] EnterpriseConfig clusterTier + */ + + /** + * Constructs a new EnterpriseConfig. + * @memberof google.container.v1beta1 + * @classdesc Represents an EnterpriseConfig. + * @implements IEnterpriseConfig + * @constructor + * @param {google.container.v1beta1.IEnterpriseConfig=} [properties] Properties to set + */ + function EnterpriseConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnterpriseConfig clusterTier. + * @member {google.container.v1beta1.EnterpriseConfig.ClusterTier} clusterTier + * @memberof google.container.v1beta1.EnterpriseConfig + * @instance + */ + EnterpriseConfig.prototype.clusterTier = 0; + + /** + * Creates a new EnterpriseConfig instance using the specified properties. + * @function create + * @memberof google.container.v1beta1.EnterpriseConfig + * @static + * @param {google.container.v1beta1.IEnterpriseConfig=} [properties] Properties to set + * @returns {google.container.v1beta1.EnterpriseConfig} EnterpriseConfig instance + */ + EnterpriseConfig.create = function create(properties) { + return new EnterpriseConfig(properties); + }; + + /** + * Encodes the specified EnterpriseConfig message. Does not implicitly {@link google.container.v1beta1.EnterpriseConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1beta1.EnterpriseConfig + * @static + * @param {google.container.v1beta1.IEnterpriseConfig} message EnterpriseConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnterpriseConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.clusterTier != null && Object.hasOwnProperty.call(message, "clusterTier")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.clusterTier); + return writer; + }; + + /** + * Encodes the specified EnterpriseConfig message, length delimited. Does not implicitly {@link google.container.v1beta1.EnterpriseConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1beta1.EnterpriseConfig + * @static + * @param {google.container.v1beta1.IEnterpriseConfig} message EnterpriseConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnterpriseConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnterpriseConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1beta1.EnterpriseConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1beta1.EnterpriseConfig} EnterpriseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnterpriseConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1beta1.EnterpriseConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.clusterTier = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnterpriseConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1beta1.EnterpriseConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1beta1.EnterpriseConfig} EnterpriseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnterpriseConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnterpriseConfig message. + * @function verify + * @memberof google.container.v1beta1.EnterpriseConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnterpriseConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.clusterTier != null && message.hasOwnProperty("clusterTier")) + switch (message.clusterTier) { + default: + return "clusterTier: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an EnterpriseConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1beta1.EnterpriseConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1beta1.EnterpriseConfig} EnterpriseConfig + */ + EnterpriseConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1beta1.EnterpriseConfig) + return object; + var message = new $root.google.container.v1beta1.EnterpriseConfig(); + switch (object.clusterTier) { + default: + if (typeof object.clusterTier === "number") { + message.clusterTier = object.clusterTier; + break; + } + break; + case "CLUSTER_TIER_UNSPECIFIED": + case 0: + message.clusterTier = 0; + break; + case "STANDARD": + case 1: + message.clusterTier = 1; + break; + case "ENTERPRISE": + case 2: + message.clusterTier = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an EnterpriseConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1beta1.EnterpriseConfig + * @static + * @param {google.container.v1beta1.EnterpriseConfig} message EnterpriseConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnterpriseConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.clusterTier = options.enums === String ? "CLUSTER_TIER_UNSPECIFIED" : 0; + if (message.clusterTier != null && message.hasOwnProperty("clusterTier")) + object.clusterTier = options.enums === String ? $root.google.container.v1beta1.EnterpriseConfig.ClusterTier[message.clusterTier] === undefined ? message.clusterTier : $root.google.container.v1beta1.EnterpriseConfig.ClusterTier[message.clusterTier] : message.clusterTier; + return object; + }; + + /** + * Converts this EnterpriseConfig to JSON. + * @function toJSON + * @memberof google.container.v1beta1.EnterpriseConfig + * @instance + * @returns {Object.} JSON object + */ + EnterpriseConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnterpriseConfig + * @function getTypeUrl + * @memberof google.container.v1beta1.EnterpriseConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnterpriseConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1beta1.EnterpriseConfig"; + }; + + /** + * ClusterTier enum. + * @name google.container.v1beta1.EnterpriseConfig.ClusterTier + * @enum {number} + * @property {number} CLUSTER_TIER_UNSPECIFIED=0 CLUSTER_TIER_UNSPECIFIED value + * @property {number} STANDARD=1 STANDARD value + * @property {number} ENTERPRISE=2 ENTERPRISE value + */ + EnterpriseConfig.ClusterTier = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CLUSTER_TIER_UNSPECIFIED"] = 0; + values[valuesById[1] = "STANDARD"] = 1; + values[valuesById[2] = "ENTERPRISE"] = 2; + return values; + })(); + + return EnterpriseConfig; + })(); + + /** + * InTransitEncryptionConfig enum. + * @name google.container.v1beta1.InTransitEncryptionConfig + * @enum {number} + * @property {number} IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED=0 IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED value + * @property {number} IN_TRANSIT_ENCRYPTION_DISABLED=1 IN_TRANSIT_ENCRYPTION_DISABLED value + * @property {number} IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT=2 IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT value + */ + v1beta1.InTransitEncryptionConfig = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED"] = 0; + values[valuesById[1] = "IN_TRANSIT_ENCRYPTION_DISABLED"] = 1; + values[valuesById[2] = "IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT"] = 2; + return values; + })(); + return v1beta1; })(); diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index 243594b432b..f619377706a 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -1103,6 +1103,10 @@ "soleTenantConfig": { "type": "SoleTenantConfig", "id": 42 + }, + "resourceManagerTags": { + "type": "ResourceManagerTags", + "id": 45 } } }, @@ -2178,6 +2182,10 @@ "enableK8sBetaApis": { "type": "K8sBetaAPIConfig", "id": 143 + }, + "enterpriseConfig": { + "type": "EnterpriseConfig", + "id": 149 } }, "nested": { @@ -2254,6 +2262,10 @@ "networkTags": { "type": "NetworkTags", "id": 1 + }, + "resourceManagerTags": { + "type": "ResourceManagerTags", + "id": 2 } } }, @@ -2493,6 +2505,10 @@ "desiredK8sBetaApis": { "type": "K8sBetaAPIConfig", "id": 131 + }, + "desiredNodePoolAutoConfigResourceManagerTags": { + "type": "ResourceManagerTags", + "id": 136 } } }, @@ -2658,7 +2674,8 @@ "SET_NODE_POOL_SIZE": 14, "SET_NETWORK_POLICY": 15, "SET_MAINTENANCE_POLICY": 16, - "RESIZE_CLUSTER": 18 + "RESIZE_CLUSTER": 18, + "FLEET_FEATURE_UPGRADE": 19 } } } @@ -2950,6 +2967,10 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "resourceManagerTags": { + "type": "ResourceManagerTags", + "id": 39 } } }, @@ -5630,6 +5651,35 @@ "id": 1 } } + }, + "ResourceManagerTags": { + "fields": { + "tags": { + "keyType": "string", + "type": "string", + "id": 1 + } + } + }, + "EnterpriseConfig": { + "fields": { + "clusterTier": { + "type": "ClusterTier", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "ClusterTier": { + "values": { + "CLUSTER_TIER_UNSPECIFIED": 0, + "STANDARD": 1, + "ENTERPRISE": 2 + } + } + } } } }, @@ -6702,6 +6752,10 @@ "type": "HostMaintenancePolicy", "id": 44 }, + "resourceManagerTags": { + "type": "ResourceManagerTags", + "id": 45 + }, "enableConfidentialStorage": { "type": "bool", "id": 46, @@ -7010,6 +7064,11 @@ "oneof": [ "maintenanceInterval" ] + }, + "maintenanceStrategy": { + "oneof": [ + "opportunisticMaintenanceStrategy" + ] } }, "fields": { @@ -7019,6 +7078,10 @@ "options": { "proto3_optional": true } + }, + "opportunisticMaintenanceStrategy": { + "type": "OpportunisticMaintenanceStrategy", + "id": 2 } }, "nested": { @@ -7028,6 +7091,48 @@ "AS_NEEDED": 1, "PERIODIC": 2 } + }, + "OpportunisticMaintenanceStrategy": { + "oneofs": { + "_nodeIdleTimeWindow": { + "oneof": [ + "nodeIdleTimeWindow" + ] + }, + "_maintenanceAvailabilityWindow": { + "oneof": [ + "maintenanceAvailabilityWindow" + ] + }, + "_minNodesPerPool": { + "oneof": [ + "minNodesPerPool" + ] + } + }, + "fields": { + "nodeIdleTimeWindow": { + "type": "google.protobuf.Duration", + "id": 1, + "options": { + "proto3_optional": true + } + }, + "maintenanceAvailabilityWindow": { + "type": "google.protobuf.Duration", + "id": 2, + "options": { + "proto3_optional": true + } + }, + "minNodesPerPool": { + "type": "int64", + "id": 3, + "options": { + "proto3_optional": true + } + } + } } } }, @@ -8029,6 +8134,10 @@ "securityPostureConfig": { "type": "SecurityPostureConfig", "id": 145 + }, + "enterpriseConfig": { + "type": "EnterpriseConfig", + "id": 149 } }, "nested": { @@ -8206,6 +8315,10 @@ "networkTags": { "type": "NetworkTags", "id": 1 + }, + "resourceManagerTags": { + "type": "ResourceManagerTags", + "id": 2 } } }, @@ -8225,6 +8338,11 @@ "oneof": [ "desiredEnableFqdnNetworkPolicy" ] + }, + "_desiredInTransitEncryptionConfig": { + "oneof": [ + "desiredInTransitEncryptionConfig" + ] } }, "fields": { @@ -8466,6 +8584,17 @@ "desiredHostMaintenancePolicy": { "type": "HostMaintenancePolicy", "id": 132 + }, + "desiredNodePoolAutoConfigResourceManagerTags": { + "type": "ResourceManagerTags", + "id": 136 + }, + "desiredInTransitEncryptionConfig": { + "type": "InTransitEncryptionConfig", + "id": 137, + "options": { + "proto3_optional": true + } } } }, @@ -8631,7 +8760,8 @@ "SET_NODE_POOL_SIZE": 14, "SET_NETWORK_POLICY": 15, "SET_MAINTENANCE_POLICY": 16, - "RESIZE_CLUSTER": 18 + "RESIZE_CLUSTER": 18, + "FLEET_FEATURE_UPGRADE": 19 } } } @@ -8935,6 +9065,10 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "resourceManagerTags": { + "type": "ResourceManagerTags", + "id": 39 } } }, @@ -9936,6 +10070,7 @@ "UPDATE_STARTED": 1, "CREATING_GREEN_POOL": 2, "CORDONING_BLUE_POOL": 3, + "WAITING_TO_DRAIN_BLUE_POOL": 8, "DRAINING_BLUE_POOL": 4, "NODE_POOL_SOAKING": 5, "DELETING_BLUE_POOL": 6, @@ -10887,6 +11022,11 @@ "oneof": [ "enableFqdnNetworkPolicy" ] + }, + "_inTransitEncryptionConfig": { + "oneof": [ + "inTransitEncryptionConfig" + ] } }, "fields": { @@ -10944,6 +11084,13 @@ "options": { "proto3_optional": true } + }, + "inTransitEncryptionConfig": { + "type": "InTransitEncryptionConfig", + "id": 20, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -11857,6 +12004,42 @@ "IPV4": 1, "IPV4_IPV6": 2 } + }, + "ResourceManagerTags": { + "fields": { + "tags": { + "keyType": "string", + "type": "string", + "id": 1 + } + } + }, + "EnterpriseConfig": { + "fields": { + "clusterTier": { + "type": "ClusterTier", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "ClusterTier": { + "values": { + "CLUSTER_TIER_UNSPECIFIED": 0, + "STANDARD": 1, + "ENTERPRISE": 2 + } + } + } + }, + "InTransitEncryptionConfig": { + "values": { + "IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED": 0, + "IN_TRANSIT_ENCRYPTION_DISABLED": 1, + "IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT": 2 + } } } } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js index 1cc396fe3ea..327aaf9d27f 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js @@ -155,6 +155,12 @@ function main(nodeVersion, imageType) { * node pool to the specified disk size. */ // const diskSizeGb = 1234 + /** + * Desired resource manager tag keys and values to be attached to the nodes + * for managing Compute Engine firewalls using Network Firewall Policies. + * Existing tags will be replaced with new values. + */ + // const resourceManagerTags = {} // Imports the Container library const {ClusterManagerClient} = require('@google-cloud/container').v1; diff --git a/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json index 15741880ec0..1b91a224f66 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json @@ -230,7 +230,7 @@ "segments": [ { "start": 25, - "end": 177, + "end": 183, "type": "FULL" } ], @@ -346,6 +346,10 @@ { "name": "disk_size_gb", "type": "TYPE_INT64" + }, + { + "name": "resource_manager_tags", + "type": ".google.container.v1.ResourceManagerTags" } ], "resultType": ".google.container.v1.Operation", diff --git a/packages/google-container/samples/generated/v1beta1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1beta1/cluster_manager.update_node_pool.js index 7b10a09fc11..876440c7f31 100644 --- a/packages/google-container/samples/generated/v1beta1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1beta1/cluster_manager.update_node_pool.js @@ -152,6 +152,12 @@ function main(projectId, zone, clusterId, nodePoolId, nodeVersion, imageType) { * node pool to the specified disk size. */ // const diskSizeGb = 1234 + /** + * Desired resource manager tag keys and values to be attached to the nodes + * for managing Compute Engine firewalls using Network Firewall Policies. + * Existing tags will be replaced with new values. + */ + // const resourceManagerTags = {} // Imports the Container library const {ClusterManagerClient} = require('@google-cloud/container').v1beta1; diff --git a/packages/google-container/samples/generated/v1beta1/snippet_metadata_google.container.v1beta1.json b/packages/google-container/samples/generated/v1beta1/snippet_metadata_google.container.v1beta1.json index 3ff9a60430a..681d3052f36 100644 --- a/packages/google-container/samples/generated/v1beta1/snippet_metadata_google.container.v1beta1.json +++ b/packages/google-container/samples/generated/v1beta1/snippet_metadata_google.container.v1beta1.json @@ -230,7 +230,7 @@ "segments": [ { "start": 25, - "end": 178, + "end": 184, "type": "FULL" } ], @@ -346,6 +346,10 @@ { "name": "disk_size_gb", "type": "TYPE_INT64" + }, + { + "name": "resource_manager_tags", + "type": ".google.container.v1beta1.ResourceManagerTags" } ], "resultType": ".google.container.v1beta1.Operation", diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 5bd3a82949f..d4641b68622 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -857,6 +857,10 @@ export class ClusterManagerClient { * The smallest allowed disk size is 10GB. * Initiates an upgrade operation that migrates the nodes in the * node pool to the specified disk size. + * @param {google.container.v1.ResourceManagerTags} request.resourceManagerTags + * Desired resource manager tag keys and values to be attached to the nodes + * for managing Compute Engine firewalls using Network Firewall Policies. + * Existing tags will be replaced with new values. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. diff --git a/packages/google-container/src/v1beta1/cluster_manager_client.ts b/packages/google-container/src/v1beta1/cluster_manager_client.ts index 7298a6ca0a1..20004d30d30 100644 --- a/packages/google-container/src/v1beta1/cluster_manager_client.ts +++ b/packages/google-container/src/v1beta1/cluster_manager_client.ts @@ -861,6 +861,10 @@ export class ClusterManagerClient { * Optional. The desired disk size for nodes in the node pool. * Initiates an upgrade operation that migrates the nodes in the * node pool to the specified disk size. + * @param {google.container.v1beta1.ResourceManagerTags} request.resourceManagerTags + * Desired resource manager tag keys and values to be attached to the nodes + * for managing Compute Engine firewalls using Network Firewall Policies. + * Existing tags will be replaced with new values. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array.