diff --git a/package.json b/package.json
index ad93cb3..50c4df0 100644
--- a/package.json
+++ b/package.json
@@ -38,7 +38,7 @@
"compile": "tsc -p . && cp -r protos build/",
"compile-protos": "compileProtos src",
"predocs-test": "npm run docs",
- "prepare": "npm run compile",
+ "prepare": "npm run compile-protos && npm run compile",
"prelint": "cd samples; npm link ../; npm install",
"precompile": "gts clean",
"api-extractor": "api-extractor run --local",
diff --git a/protos/google/container/v1/cluster_service.proto b/protos/google/container/v1/cluster_service.proto
index 6363fc9..040173e 100644
--- a/protos/google/container/v1/cluster_service.proto
+++ b/protos/google/container/v1/cluster_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-//
syntax = "proto3";
@@ -65,7 +64,8 @@ service ClusterManager {
// Compute Engine instances.
//
// By default, the cluster is created in the project's
- // [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
+ // [default
+ // network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
//
// One firewall is added for the cluster. After cluster creation,
// the Kubelet creates routes for each node to allow the containers
@@ -168,7 +168,11 @@ service ClusterManager {
}
// Sets the locations for a specific cluster.
+ // Deprecated. Use
+ // [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
+ // instead.
rpc SetLocations(SetLocationsRequest) returns (Operation) {
+ option deprecated = true;
option (google.api.http) = {
post: "/v1/{name=projects/*/locations/*/clusters/*}:setLocations"
body: "*"
@@ -249,6 +253,7 @@ service ClusterManager {
}
};
option (google.api.method_signature) = "project_id,zone,operation_id";
+ option (google.api.method_signature) = "name";
}
// Cancels the specified operation.
@@ -277,6 +282,16 @@ service ClusterManager {
option (google.api.method_signature) = "name";
}
+ // Gets the public component of the cluster signing keys in
+ // JSON Web Key format.
+ // This API is not yet intended for general use, and is not available for all
+ // clusters.
+ rpc GetJSONWebKeys(GetJSONWebKeysRequest) returns (GetJSONWebKeysResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*/clusters/*}/jwks"
+ };
+ }
+
// Lists the node pools for a cluster.
rpc ListNodePools(ListNodePoolsRequest) returns (ListNodePoolsResponse) {
option (google.api.http) = {
@@ -459,11 +474,9 @@ service ClusterManager {
// Parameters that describe the nodes in a cluster.
message NodeConfig {
// The name of a Google Compute Engine [machine
- // type](https://cloud.google.com/compute/docs/machine-types) (e.g.
- // `n1-standard-1`).
+ // type](https://cloud.google.com/compute/docs/machine-types)
//
- // If unspecified, the default machine type is
- // `n1-standard-1`.
+ // If unspecified, the default machine type is `e2-medium`.
string machine_type = 1;
// Size of the disk attached to each node, specified in GB.
@@ -482,41 +495,46 @@ message NodeConfig {
// persistent storage on your nodes.
// * `https://www.googleapis.com/auth/devstorage.read_only` is required for
// communicating with **gcr.io**
- // (the [Google Container Registry](https://cloud.google.com/container-registry/)).
+ // (the [Google Container
+ // Registry](https://cloud.google.com/container-registry/)).
//
// If unspecified, no scopes are added, unless Cloud Logging or Cloud
// Monitoring are enabled, in which case their required scopes will be added.
repeated string oauth_scopes = 3;
- // The Google Cloud Platform Service Account to be used by the node VMs. If
- // no Service Account is specified, the "default" service account is used.
+ // The Google Cloud Platform Service Account to be used by the node VMs.
+ // Specify the email address of the Service Account; otherwise, if no Service
+ // Account is specified, the "default" service account is used.
string service_account = 9;
// The metadata key/value pairs assigned to instances in the cluster.
//
- // Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+ // Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
// in length. These are reflected as part of a URL in the metadata server.
// Additionally, to avoid ambiguity, keys must not conflict with any other
// metadata keys for the project or be one of the reserved keys:
- // "cluster-location"
- // "cluster-name"
- // "cluster-uid"
- // "configure-sh"
- // "containerd-configure-sh"
- // "enable-os-login"
- // "gci-update-strategy"
- // "gci-ensure-gke-docker"
- // "instance-template"
- // "kube-env"
- // "startup-script"
- // "user-data"
- // "disable-address-manager"
- // "windows-startup-script-ps1"
- // "common-psm1"
- // "k8s-node-setup-psm1"
- // "install-ssh-psm1"
- // "user-profile-psm1"
- // "serial-port-logging-enable"
+ // - "cluster-location"
+ // - "cluster-name"
+ // - "cluster-uid"
+ // - "configure-sh"
+ // - "containerd-configure-sh"
+ // - "enable-os-login"
+ // - "gci-ensure-gke-docker"
+ // - "gci-metrics-enabled"
+ // - "gci-update-strategy"
+ // - "instance-template"
+ // - "kube-env"
+ // - "startup-script"
+ // - "user-data"
+ // - "disable-address-manager"
+ // - "windows-startup-script-ps1"
+ // - "common-psm1"
+ // - "k8s-node-setup-psm1"
+ // - "install-ssh-psm1"
+ // - "user-profile-psm1"
+ //
+ // The following keys are reserved for Windows nodes:
+ // - "serial-port-logging-enable"
//
// Values are free-form strings, and only have meaning as interpreted by
// the image running in the instance. The only restriction placed on them is
@@ -563,7 +581,8 @@ message NodeConfig {
// support for GPUs.
repeated AcceleratorConfig accelerators = 11;
- // Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+ // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+ // 'pd-balanced')
//
// If unspecified, the default disk type is 'pd-standard'
string disk_type = 12;
@@ -571,20 +590,47 @@ message NodeConfig {
// Minimum CPU platform to be used by this instance. The instance may be
// scheduled on the specified or newer CPU platform. Applicable values are the
// friendly names of CPU platforms, such as
- // minCpuPlatform: "Intel Haswell"
or
- // minCpuPlatform: "Intel Sandy Bridge"
. For more
+ // `minCpuPlatform: "Intel Haswell"` or
+ // `minCpuPlatform: "Intel Sandy Bridge"`. For more
// information, read [how to specify min CPU
// platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
string min_cpu_platform = 13;
+ // The workload metadata configuration for this node.
+ WorkloadMetadataConfig workload_metadata_config = 14;
+
// List of kubernetes taints to be applied to each node.
//
// For more information, including usage and the valid values, see:
// https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
repeated NodeTaint taints = 15;
+ // Sandbox configuration for this node.
+ SandboxConfig sandbox_config = 17;
+
+ // Setting this field will assign instances of this
+ // pool to run on the specified node group. This is useful for running
+ // workloads on [sole tenant
+ // nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+ string node_group = 18;
+
+ // The optional reservation affinity. Setting this field will apply
+ // the specified [Zonal Compute
+ // Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+ // to this node pool.
+ ReservationAffinity reservation_affinity = 19;
+
// Shielded Instance options.
ShieldedInstanceConfig shielded_instance_config = 20;
+
+ //
+ // The Customer Managed Encryption Key used to encrypt the boot disk attached
+ // to each node in the node pool. This should be of the form
+ // projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+ // For more information about protecting resources with Cloud KMS Keys please
+ // see:
+ // https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+ string boot_disk_kms_key = 23;
}
// A set of Shielded Instance options.
@@ -605,11 +651,59 @@ message ShieldedInstanceConfig {
bool enable_integrity_monitoring = 2;
}
+// SandboxConfig contains configurations of the sandbox to use for the node.
+message SandboxConfig {
+ // Possible types of sandboxes.
+ enum Type {
+ // Default value. This should not be used.
+ UNSPECIFIED = 0;
+
+ // Run sandbox using gvisor.
+ GVISOR = 1;
+ }
+
+ // Type of the sandbox to use for the node.
+ Type type = 2;
+}
+
+// [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+// is the configuration of desired reservation which instances could take
+// capacity from.
+message ReservationAffinity {
+ // Indicates whether to consume capacity from a reservation or not.
+ enum Type {
+ // Default value. This should not be used.
+ UNSPECIFIED = 0;
+
+ // Do not consume from any reserved capacity.
+ NO_RESERVATION = 1;
+
+ // Consume any reservation available.
+ ANY_RESERVATION = 2;
+
+ // Must consume from a specific reservation. Must specify key value fields
+ // for specifying the reservations.
+ SPECIFIC_RESERVATION = 3;
+ }
+
+ // Corresponds to the type of reservation consumption.
+ Type consume_reservation_type = 1;
+
+ // Corresponds to the label key of a reservation resource. To target a
+ // SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+ // the key and specify the name of your reservation as its value.
+ string key = 2;
+
+ // Corresponds to the label value(s) of reservation resource(s).
+ repeated string values = 3;
+}
+
// Kubernetes taint is comprised of three fields: key, value, and effect. Effect
// can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
//
-// For more information, including usage and the valid values, see:
-// https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+// See
+// [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
+// for more information, including usage and the valid values.
message NodeTaint {
// Possible values for Effect in taint.
enum Effect {
@@ -643,13 +737,23 @@ message MasterAuth {
// The username to use for HTTP basic authentication to the master endpoint.
// For clusters v1.6.0 and later, basic authentication can be disabled by
// leaving username unspecified (or setting it to the empty string).
- string username = 1;
+ //
+ // Warning: basic authentication is deprecated, and will be removed in GKE
+ // control plane versions 1.19 and newer. For a list of recommended
+ // authentication methods, see:
+ // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+ string username = 1 [deprecated = true];
// The password to use for HTTP basic authentication to the master endpoint.
// Because the master endpoint is open to the Internet, you should create a
// strong password. If a password is provided for cluster creation, username
// must be non-empty.
- string password = 2;
+ //
+ // Warning: basic authentication is deprecated, and will be removed in GKE
+ // control plane versions 1.19 and newer. For a list of recommended
+ // authentication methods, see:
+ // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+ string password = 2 [deprecated = true];
// Configuration for client certificate authentication on the cluster. For
// clusters before v1.12, if no configuration is specified, a client
@@ -702,6 +806,13 @@ message AddonsConfig {
// Configuration for the Cloud Run addon, which allows the user to use a
// managed Knative service.
CloudRunConfig cloud_run_config = 7;
+
+ // Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+ DnsCacheConfig dns_cache_config = 8;
+
+ // Configuration for the ConfigConnector add-on, a Kubernetes
+ // extension to manage hosted GCP services through the Kubernetes API
+ ConfigConnectorConfig config_connector_config = 10;
}
// Configuration options for the HTTP (L7) load balancing controller addon,
@@ -718,8 +829,8 @@ message HttpLoadBalancing {
// has based on the resource usage of the existing pods.
message HorizontalPodAutoscaling {
// Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
- // When enabled, it ensures that a Heapster pod is running in the cluster,
- // which is also used by the Cloud Monitoring service.
+ // When enabled, it ensures that metrics are collected into Stackdriver
+ // Monitoring.
bool disabled = 1;
}
@@ -737,6 +848,18 @@ message NetworkPolicyConfig {
bool disabled = 1;
}
+// Configuration for NodeLocal DNSCache
+message DnsCacheConfig {
+ // Whether NodeLocal DNSCache is enabled for this cluster.
+ bool enabled = 1;
+}
+
+// Configuration for controlling master global access settings.
+message PrivateClusterMasterGlobalAccessConfig {
+ // Whenever master is accessible globally or not.
+ bool enabled = 1;
+}
+
// Configuration options for private clusters.
message PrivateClusterConfig {
// Whether nodes have internal IP addresses only. If enabled, all nodes are
@@ -758,6 +881,12 @@ message PrivateClusterConfig {
// Output only. The external IP address of this cluster's master endpoint.
string public_endpoint = 5;
+
+ // Output only. The peering name in the customer VPC used by this cluster.
+ string peering_name = 7;
+
+ // Controls master global access settings.
+ PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;
}
// Configuration for returning group information from authenticators.
@@ -773,8 +902,29 @@ message AuthenticatorGroupsConfig {
// Configuration options for the Cloud Run feature.
message CloudRunConfig {
+ // Load balancer type of ingress service of Cloud Run.
+ enum LoadBalancerType {
+ // Load balancer type for Cloud Run is unspecified.
+ LOAD_BALANCER_TYPE_UNSPECIFIED = 0;
+
+ // Install external load balancer for Cloud Run.
+ LOAD_BALANCER_TYPE_EXTERNAL = 1;
+
+ // Install internal load balancer for Cloud Run.
+ LOAD_BALANCER_TYPE_INTERNAL = 2;
+ }
+
// Whether Cloud Run addon is enabled for this cluster.
bool disabled = 1;
+
+ // Which load balancer type is installed for Cloud Run.
+ LoadBalancerType load_balancer_type = 3;
+}
+
+// Configuration options for the Config Connector add-on.
+message ConfigConnectorConfig {
+ // Whether Cloud Connector is enabled for this cluster.
+ bool enabled = 1;
}
// Configuration options for the master authorized networks feature. Enabled
@@ -838,6 +988,9 @@ message BinaryAuthorization {
// Configuration for controlling how IPs are allocated in the cluster.
message IPAllocationPolicy {
// Whether alias IPs will be used for pod IPs in the cluster.
+ // This is used in conjunction with use_routes. It cannot
+ // be true if use_routes is true. If both use_ip_aliases and use_routes are
+ // false, then the server picks the default IP allocation mode
bool use_ip_aliases = 1;
// Whether a new subnetwork will be created automatically for the cluster.
@@ -943,6 +1096,12 @@ message IPAllocationPolicy {
// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
// to use.
string tpu_ipv4_cidr_block = 13;
+
+ // Whether routes will be used for pod IPs in the cluster.
+ // This is used in conjunction with use_ip_aliases. It cannot be true if
+ // use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+ // then the server picks the default IP allocation mode
+ bool use_routes = 15;
}
// A Google Kubernetes Engine cluster.
@@ -967,8 +1126,8 @@ message Cluster {
// The STOPPING state indicates the cluster is being deleted.
STOPPING = 4;
- // The ERROR state indicates the cluster may be unusable. Details
- // can be found in the `statusMessage` field.
+ // The ERROR state indicates the cluster is unusable. It will be
+ // automatically deleted. Details can be found in the `statusMessage` field.
ERROR = 5;
// The DEGRADED state indicates the cluster requires user action to restore
@@ -1023,25 +1182,33 @@ message Cluster {
// The logging service the cluster should use to write logs.
// Currently available options:
//
- // * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
- // service with Kubernetes-native resource model
- // * `logging.googleapis.com` - the Google Cloud Logging service.
+ // * `logging.googleapis.com/kubernetes` - The Cloud Logging
+ // service with a Kubernetes-native resource model
+ // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+ // available as of GKE 1.15).
// * `none` - no logs will be exported from the cluster.
- // * if left as an empty string,`logging.googleapis.com` will be used.
+ //
+ // If left as an empty string,`logging.googleapis.com/kubernetes` will be
+ // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
string logging_service = 6;
// The monitoring service the cluster should use to write metrics.
// Currently available options:
//
- // * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
- // * `none` - no metrics will be exported from the cluster.
- // * if left as an empty string, `monitoring.googleapis.com` will be used.
+ // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+ // service with a Kubernetes-native resource model
+ // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+ // longer available as of GKE 1.15).
+ // * `none` - No metrics will be exported from the cluster.
+ //
+ // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+ // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
string monitoring_service = 7;
// The name of the Google Compute Engine
- // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
- // cluster is connected. If left unspecified, the `default` network
- // will be used.
+ // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+ // to which the cluster is connected. If left unspecified, the `default`
+ // network will be used.
string network = 8;
// The IP address range of the container pods in this cluster, in
@@ -1054,8 +1221,8 @@ message Cluster {
AddonsConfig addons_config = 10;
// The name of the Google Compute Engine
- // [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the
- // cluster is connected.
+ // [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+ // the cluster is connected.
string subnetwork = 11;
// The node pools associated with this cluster.
@@ -1064,8 +1231,16 @@ message Cluster {
repeated NodePool node_pools = 12;
// The list of Google Compute Engine
- // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
- // should be located.
+ // [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster's nodes should be located.
+ //
+ // This field provides a default value if
+ // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+ // are not specified during node pool creation.
+ //
+ // Warning: changing cluster locations will update the
+ // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+ // of all node pools and will result in nodes being added and/or removed.
repeated string locations = 13;
// Kubernetes alpha features are enabled on this cluster. This includes alpha
@@ -1128,13 +1303,22 @@ message Cluster {
// Cluster-level Vertical Pod Autoscaling configuration.
VerticalPodAutoscaling vertical_pod_autoscaling = 39;
+ // Shielded Nodes configuration.
+ ShieldedNodes shielded_nodes = 40;
+
+ // Release channel configuration.
+ ReleaseChannel release_channel = 41;
+
+ // Configuration for the use of Kubernetes Service Accounts in GCP IAM
+ // policies.
+ WorkloadIdentityConfig workload_identity_config = 43;
+
// [Output only] Server-defined URL for the resource.
string self_link = 100;
// [Output only] The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field is deprecated, use location instead.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field is deprecated, use location instead.
string zone = 101 [deprecated = true];
// [Output only] The IP address of this cluster's master endpoint.
@@ -1164,7 +1348,7 @@ message Cluster {
string current_master_version = 104;
// [Output only] Deprecated, use
- // [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
+ // [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
// instead. The current version of the node software components. If they are
// currently at multiple versions because they're in the process of being
// upgraded, this reflects the minimum version of all nodes.
@@ -1177,9 +1361,10 @@ message Cluster {
// [Output only] The current status of this cluster.
Status status = 107;
- // [Output only] Additional information about the current status of this
+ // [Output only] Deprecated. Use conditions instead.
+ // Additional information about the current status of this
// cluster, if available.
- string status_message = 108;
+ string status_message = 108 [deprecated = true];
// [Output only] The size of the address space on each node for hosting
// containers. This is provisioned from within the `container_ipv4_cidr`
@@ -1206,9 +1391,10 @@ message Cluster {
string expire_time = 113;
// [Output only] The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
- // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
- // the cluster resides.
+ // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+ // or
+ // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+ // in which the cluster resides.
string location = 114;
// Enable the ability to use Cloud TPUs in this cluster.
@@ -1243,10 +1429,14 @@ message ClusterUpdate {
// The monitoring service the cluster should use to write metrics.
// Currently available options:
//
- // * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
- // service with Kubernetes-native resource model
- // * "monitoring.googleapis.com" - the Google Cloud Monitoring service
- // * "none" - no metrics will be exported from the cluster
+ // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+ // service with a Kubernetes-native resource model
+ // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+ // longer available as of GKE 1.15).
+ // * `none` - No metrics will be exported from the cluster.
+ //
+ // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+ // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
string desired_monitoring_service = 5;
// Configurations for the various addons available to run in the cluster.
@@ -1265,6 +1455,12 @@ message ClusterUpdate {
// Configuration of etcd encryption.
DatabaseEncryption desired_database_encryption = 46;
+ // Configuration for Workload Identity.
+ WorkloadIdentityConfig desired_workload_identity_config = 47;
+
+ // Configuration for Shielded Nodes.
+ ShieldedNodes desired_shielded_nodes = 48;
+
// Autoscaler configuration for the node pool specified in
// desired_node_pool_id. If there is only one pool in the
// cluster and desired_node_pool_id is not provided then
@@ -1272,12 +1468,13 @@ message ClusterUpdate {
NodePoolAutoscaling desired_node_pool_autoscaling = 9;
// The desired list of Google Compute Engine
- // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
- // should be located. Changing the locations a cluster is in will result
- // in nodes being either created or removed from the cluster, depending on
- // whether locations are being added or removed.
+ // [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster's nodes should be located.
//
// This list must always include the cluster's primary zone.
+ //
+ // Warning: changing cluster locations will update the locations of all node
+ // pools and will result in nodes being added and/or removed.
repeated string desired_locations = 10;
// The desired configuration options for master authorized networks feature.
@@ -1292,10 +1489,14 @@ message ClusterUpdate {
// The logging service the cluster should use to write logs.
// Currently available options:
//
- // * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
- // service with Kubernetes-native resource model
- // * "logging.googleapis.com" - the Google Cloud Logging service
- // * "none" - no logs will be exported from the cluster
+ // * `logging.googleapis.com/kubernetes` - The Cloud Logging
+ // service with a Kubernetes-native resource model
+ // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+ // available as of GKE 1.15).
+ // * `none` - no logs will be exported from the cluster.
+ //
+ // If left as an empty string,`logging.googleapis.com/kubernetes` will be
+ // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
string desired_logging_service = 19;
// The desired configuration for exporting resource usage.
@@ -1304,9 +1505,18 @@ message ClusterUpdate {
// Cluster-level Vertical Pod Autoscaling configuration.
VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22;
+ // The desired private cluster configuration.
+ PrivateClusterConfig desired_private_cluster_config = 25;
+
// The desired config of Intra-node visibility.
IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26;
+ // The desired status of whether to disable default sNAT for this cluster.
+ DefaultSnatStatus desired_default_snat_status = 28;
+
+ // The desired release channel configuration.
+ ReleaseChannel desired_release_channel = 31;
+
// The Kubernetes version to change the master to.
//
// Users may specify either explicit versions offered by
@@ -1399,9 +1609,8 @@ message Operation {
string name = 1;
// The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation
- // is taking place.
- // This field is deprecated, use location instead.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // operation is taking place. This field is deprecated, use location instead.
string zone = 2 [deprecated = true];
// The operation type.
@@ -1413,8 +1622,8 @@ message Operation {
// Detailed operation progress, if available.
string detail = 8;
- // If an error has occurred, a textual description of the error.
- string status_message = 5;
+ // Output only. If an error has occurred, a textual description of the error.
+ string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
// Server-defined URL for the resource.
string self_link = 6;
@@ -1423,9 +1632,10 @@ message Operation {
string target_link = 7;
// [Output only] The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
- // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
- // the cluster resides.
+ // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+ // or
+ // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+ // in which the cluster resides.
string location = 9;
// [Output only] The time the operation started, in
@@ -1436,6 +1646,9 @@ message Operation {
// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
string end_time = 11;
+ // Output only. [Output only] Progress information for an operation.
+ OperationProgress progress = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Which conditions caused the current cluster state.
repeated StatusCondition cluster_conditions = 13;
@@ -1443,6 +1656,46 @@ message Operation {
repeated StatusCondition nodepool_conditions = 14;
}
+// Information about operation (or operation stage) progress.
+message OperationProgress {
+ // Progress metric is (string, int|float|string) pair.
+ message Metric {
+ // Required. Metric name, e.g., "nodes total", "percent done".
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Strictly one of the values is required.
+ oneof value {
+ // For metrics with integer value.
+ int64 int_value = 2;
+
+ // For metrics with floating point value.
+ double double_value = 3;
+
+ // For metrics with custom values (ratios, visual progress, etc.).
+ string string_value = 4;
+ }
+ }
+
+ // A non-parameterized string describing an operation stage.
+ // Unset for single-stage operations.
+ string name = 1;
+
+ // Status of an operation stage.
+ // Unset for single-stage operations.
+ Operation.Status status = 2;
+
+ // Progress metric bundle, for example:
+ // metrics: [{name: "nodes done", int_value: 15},
+ // {name: "nodes total", int_value: 32}]
+ // or
+ // metrics: [{name: "progress", double_value: 0.56},
+ // {name: "progress scale", double_value: 1.0}]
+ repeated Metric metrics = 3;
+
+ // Substages of an operation or a stage.
+ repeated OperationProgress stages = 4;
+}
+
// CreateClusterRequest creates a cluster.
message CreateClusterRequest {
// Deprecated. The Google Developers Console [project ID or project
@@ -1451,13 +1704,13 @@ message CreateClusterRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the parent field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the parent
+ // field.
string zone = 2 [deprecated = true];
// Required. A [cluster
- // resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+ // resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED];
// The parent (project and location) where the cluster will be created.
@@ -1473,9 +1726,9 @@ message GetClusterRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to retrieve.
@@ -1495,9 +1748,9 @@ message UpdateClusterRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to upgrade.
@@ -1520,9 +1773,9 @@ message UpdateNodePoolRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to upgrade.
@@ -1553,6 +1806,19 @@ message UpdateNodePoolRequest {
// update. Specified in the format
// `projects/*/locations/*/clusters/*/nodePools/*`.
string name = 8;
+
+ // The desired list of Google Compute Engine
+ // [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ // node pool's nodes should be located. Changing the locations for a node pool
+ // will result in nodes being either created or removed from the node pool,
+ // depending on whether locations are being added or removed.
+ repeated string locations = 13;
+
+ // The desired workload metadata config for the node pool.
+ WorkloadMetadataConfig workload_metadata_config = 14;
+
+ // Upgrade settings control disruption and speed of the upgrade.
+ NodePool.UpgradeSettings upgrade_settings = 15;
}
// SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
@@ -1563,9 +1829,9 @@ message SetNodePoolAutoscalingRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to upgrade.
@@ -1593,20 +1859,26 @@ message SetLoggingServiceRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to upgrade.
// This field has been deprecated and replaced by the name field.
string cluster_id = 3 [deprecated = true];
- // Required. The logging service the cluster should use to write metrics.
+ // Required. The logging service the cluster should use to write logs.
// Currently available options:
//
- // * "logging.googleapis.com" - the Google Cloud Logging service
- // * "none" - no metrics will be exported from the cluster
+ // * `logging.googleapis.com/kubernetes` - The Cloud Logging
+ // service with a Kubernetes-native resource model
+ // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+ // available as of GKE 1.15).
+ // * `none` - no logs will be exported from the cluster.
+ //
+ // If left as an empty string,`logging.googleapis.com/kubernetes` will be
+ // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
string logging_service = 4 [(google.api.field_behavior) = REQUIRED];
// The name (project, location, cluster) of the cluster to set logging.
@@ -1622,9 +1894,9 @@ message SetMonitoringServiceRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to upgrade.
@@ -1634,10 +1906,14 @@ message SetMonitoringServiceRequest {
// Required. The monitoring service the cluster should use to write metrics.
// Currently available options:
//
- // * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
- // service with Kubernetes-native resource model
- // * "monitoring.googleapis.com" - the Google Cloud Monitoring service
- // * "none" - no metrics will be exported from the cluster
+ // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+ // service with a Kubernetes-native resource model
+ // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+ // longer available as of GKE 1.15).
+ // * `none` - No metrics will be exported from the cluster.
+ //
+ // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+ // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
string monitoring_service = 4 [(google.api.field_behavior) = REQUIRED];
// The name (project, location, cluster) of the cluster to set monitoring.
@@ -1653,9 +1929,9 @@ message SetAddonsConfigRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to upgrade.
@@ -1679,9 +1955,9 @@ message SetLocationsRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to upgrade.
@@ -1689,10 +1965,10 @@ message SetLocationsRequest {
string cluster_id = 3 [deprecated = true];
// Required. The desired list of Google Compute Engine
- // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
- // should be located. Changing the locations a cluster is in will result
- // in nodes being either created or removed from the cluster, depending on
- // whether locations are being added or removed.
+ // [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster's nodes should be located. Changing the locations a cluster is in
+ // will result in nodes being either created or removed from the cluster,
+ // depending on whether locations are being added or removed.
//
// This list must always include the cluster's primary zone.
repeated string locations = 4 [(google.api.field_behavior) = REQUIRED];
@@ -1710,9 +1986,9 @@ message UpdateMasterRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to upgrade.
@@ -1762,9 +2038,9 @@ message SetMasterAuthRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to upgrade.
@@ -1790,9 +2066,9 @@ message DeleteClusterRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to delete.
@@ -1812,9 +2088,9 @@ message ListClustersRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides, or "-" for all zones.
- // This field has been deprecated and replaced by the parent field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides, or "-" for all zones. This field has been deprecated and
+ // replaced by the parent field.
string zone = 2 [deprecated = true];
// The parent (project and location) where the clusters will be listed.
@@ -1842,9 +2118,9 @@ message GetOperationRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The server-assigned `name` of the operation.
@@ -1864,8 +2140,9 @@ message ListOperationsRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
- // all zones. This field has been deprecated and replaced by the parent field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) to return
+ // operations for, or `-` for all zones. This field has been deprecated and
+ // replaced by the parent field.
string zone = 2 [deprecated = true];
// The parent (project and location) where the operations will be listed.
@@ -1882,8 +2159,9 @@ message CancelOperationRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // operation resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The server-assigned `name` of the operation.
@@ -1913,8 +2191,9 @@ message GetServerConfigRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) to return
+ // operations for. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// The name (project and location) of the server config to get,
@@ -1924,10 +2203,22 @@ message GetServerConfigRequest {
// Kubernetes Engine service configuration.
message ServerConfig {
+ // ReleaseChannelConfig exposes configuration for a release channel.
+ message ReleaseChannelConfig {
+ // The release channel this configuration applies to.
+ ReleaseChannel.Channel channel = 1;
+
+ // The default version for newly created clusters on the channel.
+ string default_version = 2;
+
+ // List of valid versions for the channel.
+ repeated string valid_versions = 4;
+ }
+
// Version of Kubernetes the service deploys by default.
string default_cluster_version = 1;
- // List of valid node upgrade target versions.
+ // List of valid node upgrade target versions, in descending order.
repeated string valid_node_versions = 3;
// Default image type.
@@ -1936,8 +2227,11 @@ message ServerConfig {
// List of valid image types.
repeated string valid_image_types = 5;
- // List of valid master versions.
+ // List of valid master versions, in descending order.
repeated string valid_master_versions = 6;
+
+ // List of release channel configurations.
+ repeated ReleaseChannelConfig channels = 9;
}
// CreateNodePoolRequest creates a node pool for a cluster.
@@ -1948,9 +2242,9 @@ message CreateNodePoolRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the parent field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the parent
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster.
@@ -1974,9 +2268,9 @@ message DeleteNodePoolRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster.
@@ -2001,9 +2295,9 @@ message ListNodePoolsRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the parent field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the parent
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster.
@@ -2023,9 +2317,9 @@ message GetNodePoolRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster.
@@ -2049,6 +2343,40 @@ message GetNodePoolRequest {
// during pod scheduling. They may also be resized up or down, to accommodate
// the workload.
message NodePool {
+ // These upgrade settings control the level of parallelism and the level of
+ // disruption caused by an upgrade.
+ //
+ // maxUnavailable controls the number of nodes that can be simultaneously
+ // unavailable.
+ //
+ // maxSurge controls the number of additional nodes that can be added to the
+ // node pool temporarily for the time of the upgrade to increase the number of
+ // available nodes.
+ //
+ // (maxUnavailable + maxSurge) determines the level of parallelism (how many
+ // nodes are being upgraded at the same time).
+ //
+ // Note: upgrades inevitably introduce some disruption since workloads need to
+ // be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
+ // this holds true. (Disruption stays within the limits of
+ // PodDisruptionBudget, if it is configured.)
+ //
+ // Consider a hypothetical node pool with 5 nodes having maxSurge=2,
+ // maxUnavailable=1. This means the upgrade process upgrades 3 nodes
+ // simultaneously. It creates 2 additional (upgraded) nodes, then it brings
+ // down 3 old (not yet upgraded) nodes at the same time. This ensures that
+ // there are always at least 4 nodes available.
+ message UpgradeSettings {
+ // The maximum number of nodes that can be created beyond the current size
+ // of the node pool during the upgrade process.
+ int32 max_surge = 1;
+
+ // The maximum number of nodes that can be simultaneously unavailable during
+ // the upgrade process. A node is considered available if its status is
+ // Ready.
+ int32 max_unavailable = 2;
+ }
+
// The current status of the node pool instance.
enum Status {
// Not set.
@@ -2092,6 +2420,18 @@ message NodePool {
// firewall and routes quota.
int32 initial_node_count = 3;
+ // The list of Google Compute Engine
+ // [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ // NodePool's nodes should be located.
+ //
+ // If this value is unspecified during node pool creation, the
+ // [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+ // value will be used, instead.
+ //
+ // Warning: changing node pool locations will result in nodes being added
+ // and/or removed.
+ repeated string locations = 13;
+
// [Output only] Server-defined URL for the resource.
string self_link = 100;
@@ -2106,9 +2446,10 @@ message NodePool {
// [Output only] The status of the nodes in this pool instance.
Status status = 103;
- // [Output only] Additional information about the current status of this
+ // [Output only] Deprecated. Use conditions instead.
+ // Additional information about the current status of this
// node pool instance, if available.
- string status_message = 104;
+ string status_message = 104 [deprecated = true];
// Autoscaler configuration for this NodePool. Autoscaler is enabled
// only if a valid configuration is present.
@@ -2126,6 +2467,9 @@ message NodePool {
// [Output only] The pod CIDR block size per node in this node pool.
int32 pod_ipv4_cidr_size = 7;
+
+ // Upgrade settings control disruption and speed of the upgrade.
+ UpgradeSettings upgrade_settings = 107;
}
// NodeManagement defines the set of node management services turned on for the
@@ -2167,7 +2511,7 @@ message MaintenancePolicy {
// A hash identifying the version of this policy, so that updates to fields of
// the policy won't accidentally undo intermediate changes (and so that users
// of the API unaware of some fields won't accidentally remove other fields).
- // Make a get()
request to the cluster to get the current
+ // Make a `get()` request to the cluster to get the current
// resource version and include it with requests to set the policy.
string resource_version = 3;
}
@@ -2209,25 +2553,30 @@ message RecurringTimeWindow {
// end time.
//
// For example, to have something repeat every weekday, you'd use:
- // FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+ // `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+ //
// To repeat some window daily (equivalent to the DailyMaintenanceWindow):
- // FREQ=DAILY
+ // `FREQ=DAILY`
+ //
// For the first weekend of every month:
- // FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU
+ // `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+ //
// This specifies how frequently the window starts. Eg, if you wanted to have
// a 9-5 UTC-4 window every weekday, you'd use something like:
- //
- // start time = 2019-01-01T09:00:00-0400
- // end time = 2019-01-01T17:00:00-0400
- // recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
- //
+ // ```
+ // start time = 2019-01-01T09:00:00-0400
+ // end time = 2019-01-01T17:00:00-0400
+ // recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+ // ```
+ //
// Windows can span multiple days. Eg, to make the window encompass every
// weekend from midnight Saturday till the last minute of Sunday UTC:
- //
- // start time = 2019-01-05T00:00:00Z
- // end time = 2019-01-07T23:59:00Z
- // recurrence = FREQ=WEEKLY;BYDAY=SA
- //
+ // ```
+ // start time = 2019-01-05T00:00:00Z
+ // end time = 2019-01-07T23:59:00Z
+ // recurrence = FREQ=WEEKLY;BYDAY=SA
+ // ```
+ //
// Note the start and end time's specific dates are largely arbitrary except
// to specify duration of the window and when it first starts.
// The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
@@ -2257,9 +2606,9 @@ message SetNodePoolManagementRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to update.
@@ -2288,9 +2637,9 @@ message SetNodePoolSizeRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to update.
@@ -2320,9 +2669,9 @@ message RollbackNodePoolUpgradeRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to rollback.
@@ -2361,21 +2710,60 @@ message ClusterAutoscaling {
// created by NAP.
AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;
- // The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
- // in which the NodePool's nodes can be created by NAP.
+ // The list of Google Compute Engine
+ // [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+ // NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;
}
// AutoprovisioningNodePoolDefaults contains defaults for a node pool created
// by NAP.
message AutoprovisioningNodePoolDefaults {
- // Scopes that are used by NAP when creating node pools. If oauth_scopes are
- // specified, service_account should be empty.
+ // Scopes that are used by NAP when creating node pools.
repeated string oauth_scopes = 1;
- // The Google Cloud Platform Service Account to be used by the node VMs. If
- // service_account is specified, scopes should be empty.
+ // The Google Cloud Platform Service Account to be used by the node VMs.
string service_account = 2;
+
+ // Specifies the upgrade settings for NAP created node pools
+ NodePool.UpgradeSettings upgrade_settings = 3;
+
+ // Specifies the node management options for NAP created node-pools.
+ NodeManagement management = 4;
+
+ // Minimum CPU platform to be used for NAP created node pools.
+ // The instance may be scheduled on the specified or newer CPU platform.
+ // Applicable values are the friendly names of CPU platforms, such as
+ // minCpuPlatform: Intel Haswell or
+ // minCpuPlatform: Intel Sandy Bridge. For more
+ // information, read [how to specify min CPU
+ // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+ // To unset the min cpu platform field pass "automatic"
+ // as field value.
+ string min_cpu_platform = 5;
+
+ // Size of the disk attached to each node, specified in GB.
+ // The smallest allowed disk size is 10GB.
+ //
+ // If unspecified, the default disk size is 100GB.
+ int32 disk_size_gb = 6;
+
+ // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+ // 'pd-balanced')
+ //
+ // If unspecified, the default disk type is 'pd-standard'
+ string disk_type = 7;
+
+ // Shielded Instance options.
+ ShieldedInstanceConfig shielded_instance_config = 8;
+
+ // The Customer Managed Encryption Key used to encrypt the boot disk attached
+ // to each node in the node pool. This should be of the form
+ // projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+ // For more information about protecting resources with Cloud KMS Keys please
+ // see:
+ // https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+ string boot_disk_kms_key = 9;
}
// Contains information about amount of some resource in the cluster.
@@ -2419,9 +2807,9 @@ message SetLabelsRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster.
@@ -2435,7 +2823,7 @@ message SetLabelsRequest {
// used to detect conflicts. The fingerprint is initially generated by
// Kubernetes Engine and changes after every request to modify or update
// labels. You must always provide an up-to-date fingerprint hash when
- // updating or changing labels. Make a get()
request to the
+ // updating or changing labels. Make a `get()` request to the
// resource to get the latest fingerprint.
string label_fingerprint = 5 [(google.api.field_behavior) = REQUIRED];
@@ -2453,9 +2841,9 @@ message SetLegacyAbacRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster to update.
@@ -2479,9 +2867,9 @@ message StartIPRotationRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster.
@@ -2504,9 +2892,9 @@ message CompleteIPRotationRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster.
@@ -2528,6 +2916,31 @@ message AcceleratorConfig {
string accelerator_type = 2;
}
+// WorkloadMetadataConfig defines the metadata configuration to expose to
+// workloads on the node pool.
+message WorkloadMetadataConfig {
+ // Mode is the configuration for how to expose metadata to workloads running
+ // on the node.
+ enum Mode {
+ // Not set.
+ MODE_UNSPECIFIED = 0;
+
+ // Expose all Compute Engine metadata to pods.
+ GCE_METADATA = 1;
+
+ // Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+ // a metadata API to workloads that is compatible with the V1 Compute
+ // Metadata APIs exposed by the Compute Engine and App Engine Metadata
+ // Servers. This feature can only be enabled if Workload Identity is enabled
+ // at the cluster level.
+ GKE_METADATA = 2;
+ }
+
+ // Mode is the configuration for how to expose metadata to workloads running
+ // on the node pool.
+ Mode mode = 2;
+}
+
// SetNetworkPolicyRequest enables/disables network policy for a cluster.
message SetNetworkPolicyRequest {
// Deprecated. The Google Developers Console [project ID or project
@@ -2536,9 +2949,9 @@ message SetNetworkPolicyRequest {
string project_id = 1 [deprecated = true];
// Deprecated. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
- // This field has been deprecated and replaced by the name field.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides. This field has been deprecated and replaced by the name
+ // field.
string zone = 2 [deprecated = true];
// Deprecated. The name of the cluster.
@@ -2560,8 +2973,8 @@ message SetMaintenancePolicyRequest {
string project_id = 1 [(google.api.field_behavior) = REQUIRED];
// Required. The name of the Google Compute Engine
- // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
- // resides.
+ // [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+ // cluster resides.
string zone = 2 [(google.api.field_behavior) = REQUIRED];
// Required. The name of the cluster to update.
@@ -2585,7 +2998,8 @@ message StatusCondition {
// UNKNOWN indicates a generic condition.
UNKNOWN = 0;
- // GCE_STOCKOUT indicates a Google Compute Engine stockout.
+ // GCE_STOCKOUT indicates that Google Compute Engine resources are
+ // temporarily unavailable.
GCE_STOCKOUT = 1;
// GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
@@ -2614,19 +3028,140 @@ message StatusCondition {
// NetworkConfig reports the relative names of network & subnetwork.
message NetworkConfig {
// Output only. The relative name of the Google Compute Engine
- // [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which
- // the cluster is connected.
- // Example: projects/my-project/global/networks/my-network
+ // [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+ // to which the cluster is connected. Example:
+ // projects/my-project/global/networks/my-network
string network = 1;
// Output only. The relative name of the Google Compute Engine
- // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected.
- // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+ // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+ // cluster is connected. Example:
+ // projects/my-project/regions/us-central1/subnetworks/my-subnet
string subnetwork = 2;
// Whether Intra-node visibility is enabled for this cluster.
// This makes same node pod to pod traffic visible for VPC network.
bool enable_intra_node_visibility = 5;
+
+ // Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+ // will be disabled when default_snat_status is disabled. When disabled is set
+ // to false, default IP masquerade rules will be applied to the nodes to
+ // prevent sNAT on cluster internal traffic.
+ DefaultSnatStatus default_snat_status = 7;
+}
+
+// GetOpenIDConfigRequest gets the OIDC discovery document for the
+// cluster. See the OpenID Connect Discovery 1.0 specification for details.
+message GetOpenIDConfigRequest {
+ // The cluster (project, location, cluster id) to get the discovery document
+ // for. Specified in the format `projects/*/locations/*/clusters/*`.
+ string parent = 1;
+}
+
+// GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
+// See the OpenID Connect Discovery 1.0 specification for details.
+message GetOpenIDConfigResponse {
+ // OIDC Issuer.
+ string issuer = 1;
+
+ // JSON Web Key uri.
+ string jwks_uri = 2;
+
+ // Supported response types.
+ repeated string response_types_supported = 3;
+
+ // Supported subject types.
+ repeated string subject_types_supported = 4;
+
+ // supported ID Token signing Algorithms.
+ repeated string id_token_signing_alg_values_supported = 5;
+
+ // Supported claims.
+ repeated string claims_supported = 6;
+
+ // Supported grant types.
+ repeated string grant_types = 7;
+}
+
+// GetJSONWebKeysRequest gets the public component of the keys used by the
+// cluster to sign token requests. This will be the jwks_uri for the discover
+// document returned by getOpenIDConfig. See the OpenID Connect
+// Discovery 1.0 specification for details.
+message GetJSONWebKeysRequest {
+ // The cluster (project, location, cluster id) to get keys for. Specified in
+ // the format `projects/*/locations/*/clusters/*`.
+ string parent = 1;
+}
+
+// Jwk is a JSON Web Key as specified in RFC 7517
+message Jwk {
+ // Key Type.
+ string kty = 1;
+
+ // Algorithm.
+ string alg = 2;
+
+ // Permitted uses for the public keys.
+ string use = 3;
+
+ // Key ID.
+ string kid = 4;
+
+ // Used for RSA keys.
+ string n = 5;
+
+ // Used for RSA keys.
+ string e = 6;
+
+ // Used for ECDSA keys.
+ string x = 7;
+
+ // Used for ECDSA keys.
+ string y = 8;
+
+ // Used for ECDSA keys.
+ string crv = 9;
+}
+
+// GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
+message GetJSONWebKeysResponse {
+ // The public component of the keys used by the cluster to sign token
+ // requests.
+ repeated Jwk keys = 1;
+}
+
+// ReleaseChannel indicates which release channel a cluster is
+// subscribed to. Release channels are arranged in order of risk.
+//
+// When a cluster is subscribed to a release channel, Google maintains
+// both the master version and the node version. Node auto-upgrade
+// defaults to true and cannot be disabled.
+message ReleaseChannel {
+ // Possible values for 'channel'.
+ enum Channel {
+ // No channel specified.
+ UNSPECIFIED = 0;
+
+ // RAPID channel is offered on an early access basis for customers who want
+ // to test new releases.
+ //
+ // WARNING: Versions available in the RAPID Channel may be subject to
+ // unresolved issues with no known workaround and are not subject to any
+ // SLAs.
+ RAPID = 1;
+
+ // Clusters subscribed to REGULAR receive versions that are considered GA
+ // quality. REGULAR is intended for production users who want to take
+ // advantage of new features.
+ REGULAR = 2;
+
+ // Clusters subscribed to STABLE receive versions that are known to be
+ // stable and reliable in production.
+ STABLE = 3;
+ }
+
+ // channel specifies which release channel the cluster is subscribed to.
+ Channel channel = 1;
}
// IntraNodeVisibilityConfig contains the desired config of the intra-node
@@ -2642,6 +3177,13 @@ message MaxPodsConstraint {
int64 max_pods_per_node = 1;
}
+// Configuration for the use of Kubernetes Service Accounts in GCP IAM
+// policies.
+message WorkloadIdentityConfig {
+ // The workload pool to attach all Kubernetes service accounts to.
+ string workload_pool = 2;
+}
+
// Configuration of etcd encryption.
message DatabaseEncryption {
// State of etcd encryption.
@@ -2653,7 +3195,7 @@ message DatabaseEncryption {
ENCRYPTED = 1;
// Secrets in etcd are stored in plain text (at etcd level) - this is
- // unrelated to GCE level full disk encryption.
+ // unrelated to Compute Engine level full disk encryption.
DECRYPTED = 2;
}
@@ -2795,3 +3337,16 @@ message VerticalPodAutoscaling {
// Enables vertical pod autoscaling.
bool enabled = 1;
}
+
+// DefaultSnatStatus contains the desired state of whether default sNAT should
+// be disabled on the cluster.
+message DefaultSnatStatus {
+ // Disables cluster default sNAT rules.
+ bool disabled = 1;
+}
+
+// Configuration of Shielded Nodes feature.
+message ShieldedNodes {
+ // Whether Shielded Nodes features are enabled on all nodes in this cluster.
+ bool enabled = 1;
+}
diff --git a/protos/protos.d.ts b/protos/protos.d.ts
index 89b4606..99d34b4 100644
--- a/protos/protos.d.ts
+++ b/protos/protos.d.ts
@@ -281,6 +281,20 @@ export namespace google {
*/
public getServerConfig(request: google.container.v1.IGetServerConfigRequest): Promise;
+ /**
+ * Calls GetJSONWebKeys.
+ * @param request GetJSONWebKeysRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and GetJSONWebKeysResponse
+ */
+ public getJSONWebKeys(request: google.container.v1.IGetJSONWebKeysRequest, callback: google.container.v1.ClusterManager.GetJSONWebKeysCallback): void;
+
+ /**
+ * Calls GetJSONWebKeys.
+ * @param request GetJSONWebKeysRequest message or plain object
+ * @returns Promise
+ */
+ public getJSONWebKeys(request: google.container.v1.IGetJSONWebKeysRequest): Promise;
+
/**
* Calls ListNodePools.
* @param request ListNodePoolsRequest message or plain object
@@ -599,6 +613,13 @@ export namespace google {
*/
type GetServerConfigCallback = (error: (Error|null), response?: google.container.v1.ServerConfig) => void;
+ /**
+ * Callback as used by {@link google.container.v1.ClusterManager#getJSONWebKeys}.
+ * @param error Error, if any
+ * @param [response] GetJSONWebKeysResponse
+ */
+ type GetJSONWebKeysCallback = (error: (Error|null), response?: google.container.v1.GetJSONWebKeysResponse) => void;
+
/**
* Callback as used by {@link google.container.v1.ClusterManager#listNodePools}.
* @param error Error, if any
@@ -740,11 +761,26 @@ export namespace google {
/** NodeConfig minCpuPlatform */
minCpuPlatform?: (string|null);
+ /** NodeConfig workloadMetadataConfig */
+ workloadMetadataConfig?: (google.container.v1.IWorkloadMetadataConfig|null);
+
/** NodeConfig taints */
taints?: (google.container.v1.INodeTaint[]|null);
+ /** NodeConfig sandboxConfig */
+ sandboxConfig?: (google.container.v1.ISandboxConfig|null);
+
+ /** NodeConfig nodeGroup */
+ nodeGroup?: (string|null);
+
+ /** NodeConfig reservationAffinity */
+ reservationAffinity?: (google.container.v1.IReservationAffinity|null);
+
/** NodeConfig shieldedInstanceConfig */
shieldedInstanceConfig?: (google.container.v1.IShieldedInstanceConfig|null);
+
+ /** NodeConfig bootDiskKmsKey */
+ bootDiskKmsKey?: (string|null);
}
/** Represents a NodeConfig. */
@@ -795,12 +831,27 @@ export namespace google {
/** NodeConfig minCpuPlatform. */
public minCpuPlatform: string;
+ /** NodeConfig workloadMetadataConfig. */
+ public workloadMetadataConfig?: (google.container.v1.IWorkloadMetadataConfig|null);
+
/** NodeConfig taints. */
public taints: google.container.v1.INodeTaint[];
+ /** NodeConfig sandboxConfig. */
+ public sandboxConfig?: (google.container.v1.ISandboxConfig|null);
+
+ /** NodeConfig nodeGroup. */
+ public nodeGroup: string;
+
+ /** NodeConfig reservationAffinity. */
+ public reservationAffinity?: (google.container.v1.IReservationAffinity|null);
+
/** NodeConfig shieldedInstanceConfig. */
public shieldedInstanceConfig?: (google.container.v1.IShieldedInstanceConfig|null);
+ /** NodeConfig bootDiskKmsKey. */
+ public bootDiskKmsKey: string;
+
/**
* Creates a new NodeConfig instance using the specified properties.
* @param [properties] Properties to set
@@ -968,6 +1019,218 @@ export namespace google {
public toJSON(): { [k: string]: any };
}
+ /** Properties of a SandboxConfig. */
+ interface ISandboxConfig {
+
+ /** SandboxConfig type */
+ type?: (google.container.v1.SandboxConfig.Type|keyof typeof google.container.v1.SandboxConfig.Type|null);
+ }
+
+ /** Represents a SandboxConfig. */
+ class SandboxConfig implements ISandboxConfig {
+
+ /**
+ * Constructs a new SandboxConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.ISandboxConfig);
+
+ /** SandboxConfig type. */
+ public type: (google.container.v1.SandboxConfig.Type|keyof typeof google.container.v1.SandboxConfig.Type);
+
+ /**
+ * Creates a new SandboxConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SandboxConfig instance
+ */
+ public static create(properties?: google.container.v1.ISandboxConfig): google.container.v1.SandboxConfig;
+
+ /**
+ * Encodes the specified SandboxConfig message. Does not implicitly {@link google.container.v1.SandboxConfig.verify|verify} messages.
+ * @param message SandboxConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.ISandboxConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SandboxConfig message, length delimited. Does not implicitly {@link google.container.v1.SandboxConfig.verify|verify} messages.
+ * @param message SandboxConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.ISandboxConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SandboxConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SandboxConfig
+ * @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.SandboxConfig;
+
+ /**
+ * Decodes a SandboxConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SandboxConfig
+ * @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.SandboxConfig;
+
+ /**
+ * Verifies a SandboxConfig 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 SandboxConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SandboxConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.SandboxConfig;
+
+ /**
+ * Creates a plain object from a SandboxConfig message. Also converts values to other types if specified.
+ * @param message SandboxConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.SandboxConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SandboxConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ namespace SandboxConfig {
+
+ /** Type enum. */
+ enum Type {
+ UNSPECIFIED = 0,
+ GVISOR = 1
+ }
+ }
+
+ /** Properties of a ReservationAffinity. */
+ interface IReservationAffinity {
+
+ /** ReservationAffinity consumeReservationType */
+ consumeReservationType?: (google.container.v1.ReservationAffinity.Type|keyof typeof google.container.v1.ReservationAffinity.Type|null);
+
+ /** ReservationAffinity key */
+ key?: (string|null);
+
+ /** ReservationAffinity values */
+ values?: (string[]|null);
+ }
+
+ /** Represents a ReservationAffinity. */
+ class ReservationAffinity implements IReservationAffinity {
+
+ /**
+ * Constructs a new ReservationAffinity.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.IReservationAffinity);
+
+ /** ReservationAffinity consumeReservationType. */
+ public consumeReservationType: (google.container.v1.ReservationAffinity.Type|keyof typeof google.container.v1.ReservationAffinity.Type);
+
+ /** ReservationAffinity key. */
+ public key: string;
+
+ /** ReservationAffinity values. */
+ public values: string[];
+
+ /**
+ * Creates a new ReservationAffinity instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservationAffinity instance
+ */
+ public static create(properties?: google.container.v1.IReservationAffinity): google.container.v1.ReservationAffinity;
+
+ /**
+ * Encodes the specified ReservationAffinity message. Does not implicitly {@link google.container.v1.ReservationAffinity.verify|verify} messages.
+ * @param message ReservationAffinity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.IReservationAffinity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservationAffinity message, length delimited. Does not implicitly {@link google.container.v1.ReservationAffinity.verify|verify} messages.
+ * @param message ReservationAffinity message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.IReservationAffinity, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservationAffinity message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservationAffinity
+ * @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.ReservationAffinity;
+
+ /**
+ * Decodes a ReservationAffinity message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservationAffinity
+ * @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.ReservationAffinity;
+
+ /**
+ * Verifies a ReservationAffinity 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 ReservationAffinity message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservationAffinity
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.ReservationAffinity;
+
+ /**
+ * Creates a plain object from a ReservationAffinity message. Also converts values to other types if specified.
+ * @param message ReservationAffinity
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.ReservationAffinity, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservationAffinity to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ namespace ReservationAffinity {
+
+ /** Type enum. */
+ enum Type {
+ UNSPECIFIED = 0,
+ NO_RESERVATION = 1,
+ ANY_RESERVATION = 2,
+ SPECIFIC_RESERVATION = 3
+ }
+ }
+
/** Properties of a NodeTaint. */
interface INodeTaint {
@@ -1308,6 +1571,12 @@ export namespace google {
/** AddonsConfig cloudRunConfig */
cloudRunConfig?: (google.container.v1.ICloudRunConfig|null);
+
+ /** AddonsConfig dnsCacheConfig */
+ dnsCacheConfig?: (google.container.v1.IDnsCacheConfig|null);
+
+ /** AddonsConfig configConnectorConfig */
+ configConnectorConfig?: (google.container.v1.IConfigConnectorConfig|null);
}
/** Represents an AddonsConfig. */
@@ -1334,6 +1603,12 @@ export namespace google {
/** AddonsConfig cloudRunConfig. */
public cloudRunConfig?: (google.container.v1.ICloudRunConfig|null);
+ /** AddonsConfig dnsCacheConfig. */
+ public dnsCacheConfig?: (google.container.v1.IDnsCacheConfig|null);
+
+ /** AddonsConfig configConnectorConfig. */
+ public configConnectorConfig?: (google.container.v1.IConfigConnectorConfig|null);
+
/**
* Creates a new AddonsConfig instance using the specified properties.
* @param [properties] Properties to set
@@ -1765,221 +2040,416 @@ export namespace google {
public toJSON(): { [k: string]: any };
}
- /** Properties of a PrivateClusterConfig. */
- interface IPrivateClusterConfig {
-
- /** PrivateClusterConfig enablePrivateNodes */
- enablePrivateNodes?: (boolean|null);
-
- /** PrivateClusterConfig enablePrivateEndpoint */
- enablePrivateEndpoint?: (boolean|null);
-
- /** PrivateClusterConfig masterIpv4CidrBlock */
- masterIpv4CidrBlock?: (string|null);
+ /** Properties of a DnsCacheConfig. */
+ interface IDnsCacheConfig {
- /** PrivateClusterConfig privateEndpoint */
- privateEndpoint?: (string|null);
-
- /** PrivateClusterConfig publicEndpoint */
- publicEndpoint?: (string|null);
+ /** DnsCacheConfig enabled */
+ enabled?: (boolean|null);
}
- /** Represents a PrivateClusterConfig. */
- class PrivateClusterConfig implements IPrivateClusterConfig {
+ /** Represents a DnsCacheConfig. */
+ class DnsCacheConfig implements IDnsCacheConfig {
/**
- * Constructs a new PrivateClusterConfig.
+ * Constructs a new DnsCacheConfig.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IPrivateClusterConfig);
-
- /** PrivateClusterConfig enablePrivateNodes. */
- public enablePrivateNodes: boolean;
-
- /** PrivateClusterConfig enablePrivateEndpoint. */
- public enablePrivateEndpoint: boolean;
+ constructor(properties?: google.container.v1.IDnsCacheConfig);
- /** PrivateClusterConfig masterIpv4CidrBlock. */
- public masterIpv4CidrBlock: string;
-
- /** PrivateClusterConfig privateEndpoint. */
- public privateEndpoint: string;
-
- /** PrivateClusterConfig publicEndpoint. */
- public publicEndpoint: string;
+ /** DnsCacheConfig enabled. */
+ public enabled: boolean;
/**
- * Creates a new PrivateClusterConfig instance using the specified properties.
+ * Creates a new DnsCacheConfig instance using the specified properties.
* @param [properties] Properties to set
- * @returns PrivateClusterConfig instance
+ * @returns DnsCacheConfig instance
*/
- public static create(properties?: google.container.v1.IPrivateClusterConfig): google.container.v1.PrivateClusterConfig;
+ public static create(properties?: google.container.v1.IDnsCacheConfig): google.container.v1.DnsCacheConfig;
/**
- * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages.
- * @param message PrivateClusterConfig message or plain object to encode
+ * Encodes the specified DnsCacheConfig message. Does not implicitly {@link google.container.v1.DnsCacheConfig.verify|verify} messages.
+ * @param message DnsCacheConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IDnsCacheConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages.
- * @param message PrivateClusterConfig message or plain object to encode
+ * Encodes the specified DnsCacheConfig message, length delimited. Does not implicitly {@link google.container.v1.DnsCacheConfig.verify|verify} messages.
+ * @param message DnsCacheConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IDnsCacheConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a PrivateClusterConfig message from the specified reader or buffer.
+ * Decodes a DnsCacheConfig message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns PrivateClusterConfig
+ * @returns DnsCacheConfig
* @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.PrivateClusterConfig;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.DnsCacheConfig;
/**
- * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited.
+ * Decodes a DnsCacheConfig message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns PrivateClusterConfig
+ * @returns DnsCacheConfig
* @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.PrivateClusterConfig;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.DnsCacheConfig;
/**
- * Verifies a PrivateClusterConfig message.
+ * Verifies a DnsCacheConfig 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 PrivateClusterConfig message from a plain object. Also converts values to their respective internal types.
+ * Creates a DnsCacheConfig message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns PrivateClusterConfig
+ * @returns DnsCacheConfig
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.PrivateClusterConfig;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.DnsCacheConfig;
/**
- * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified.
- * @param message PrivateClusterConfig
+ * Creates a plain object from a DnsCacheConfig message. Also converts values to other types if specified.
+ * @param message DnsCacheConfig
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.PrivateClusterConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.DnsCacheConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this PrivateClusterConfig to JSON.
+ * Converts this DnsCacheConfig to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of an AuthenticatorGroupsConfig. */
- interface IAuthenticatorGroupsConfig {
+ /** Properties of a PrivateClusterMasterGlobalAccessConfig. */
+ interface IPrivateClusterMasterGlobalAccessConfig {
- /** AuthenticatorGroupsConfig enabled */
+ /** PrivateClusterMasterGlobalAccessConfig enabled */
enabled?: (boolean|null);
-
- /** AuthenticatorGroupsConfig securityGroup */
- securityGroup?: (string|null);
}
- /** Represents an AuthenticatorGroupsConfig. */
- class AuthenticatorGroupsConfig implements IAuthenticatorGroupsConfig {
+ /** Represents a PrivateClusterMasterGlobalAccessConfig. */
+ class PrivateClusterMasterGlobalAccessConfig implements IPrivateClusterMasterGlobalAccessConfig {
/**
- * Constructs a new AuthenticatorGroupsConfig.
+ * Constructs a new PrivateClusterMasterGlobalAccessConfig.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IAuthenticatorGroupsConfig);
+ constructor(properties?: google.container.v1.IPrivateClusterMasterGlobalAccessConfig);
- /** AuthenticatorGroupsConfig enabled. */
+ /** PrivateClusterMasterGlobalAccessConfig enabled. */
public enabled: boolean;
- /** AuthenticatorGroupsConfig securityGroup. */
- public securityGroup: string;
-
/**
- * Creates a new AuthenticatorGroupsConfig instance using the specified properties.
+ * Creates a new PrivateClusterMasterGlobalAccessConfig instance using the specified properties.
* @param [properties] Properties to set
- * @returns AuthenticatorGroupsConfig instance
+ * @returns PrivateClusterMasterGlobalAccessConfig instance
*/
- public static create(properties?: google.container.v1.IAuthenticatorGroupsConfig): google.container.v1.AuthenticatorGroupsConfig;
+ public static create(properties?: google.container.v1.IPrivateClusterMasterGlobalAccessConfig): google.container.v1.PrivateClusterMasterGlobalAccessConfig;
/**
- * Encodes the specified AuthenticatorGroupsConfig message. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages.
- * @param message AuthenticatorGroupsConfig message or plain object to encode
+ * Encodes the specified PrivateClusterMasterGlobalAccessConfig message. Does not implicitly {@link google.container.v1.PrivateClusterMasterGlobalAccessConfig.verify|verify} messages.
+ * @param message PrivateClusterMasterGlobalAccessConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IAuthenticatorGroupsConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IPrivateClusterMasterGlobalAccessConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified AuthenticatorGroupsConfig message, length delimited. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages.
- * @param message AuthenticatorGroupsConfig message or plain object to encode
+ * Encodes the specified PrivateClusterMasterGlobalAccessConfig message, length delimited. Does not implicitly {@link google.container.v1.PrivateClusterMasterGlobalAccessConfig.verify|verify} messages.
+ * @param message PrivateClusterMasterGlobalAccessConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IAuthenticatorGroupsConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IPrivateClusterMasterGlobalAccessConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer.
+ * Decodes a PrivateClusterMasterGlobalAccessConfig message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns AuthenticatorGroupsConfig
+ * @returns PrivateClusterMasterGlobalAccessConfig
* @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.AuthenticatorGroupsConfig;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.PrivateClusterMasterGlobalAccessConfig;
/**
- * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer, length delimited.
+ * Decodes a PrivateClusterMasterGlobalAccessConfig message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns AuthenticatorGroupsConfig
+ * @returns PrivateClusterMasterGlobalAccessConfig
* @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.AuthenticatorGroupsConfig;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.PrivateClusterMasterGlobalAccessConfig;
/**
- * Verifies an AuthenticatorGroupsConfig message.
+ * Verifies a PrivateClusterMasterGlobalAccessConfig 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 AuthenticatorGroupsConfig message from a plain object. Also converts values to their respective internal types.
+ * Creates a PrivateClusterMasterGlobalAccessConfig message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns AuthenticatorGroupsConfig
+ * @returns PrivateClusterMasterGlobalAccessConfig
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.AuthenticatorGroupsConfig;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.PrivateClusterMasterGlobalAccessConfig;
/**
- * Creates a plain object from an AuthenticatorGroupsConfig message. Also converts values to other types if specified.
- * @param message AuthenticatorGroupsConfig
+ * Creates a plain object from a PrivateClusterMasterGlobalAccessConfig message. Also converts values to other types if specified.
+ * @param message PrivateClusterMasterGlobalAccessConfig
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.AuthenticatorGroupsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.PrivateClusterMasterGlobalAccessConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this AuthenticatorGroupsConfig to JSON.
+ * Converts this PrivateClusterMasterGlobalAccessConfig to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a CloudRunConfig. */
- interface ICloudRunConfig {
-
+ /** Properties of a PrivateClusterConfig. */
+ interface IPrivateClusterConfig {
+
+ /** PrivateClusterConfig enablePrivateNodes */
+ enablePrivateNodes?: (boolean|null);
+
+ /** PrivateClusterConfig enablePrivateEndpoint */
+ enablePrivateEndpoint?: (boolean|null);
+
+ /** PrivateClusterConfig masterIpv4CidrBlock */
+ masterIpv4CidrBlock?: (string|null);
+
+ /** PrivateClusterConfig privateEndpoint */
+ privateEndpoint?: (string|null);
+
+ /** PrivateClusterConfig publicEndpoint */
+ publicEndpoint?: (string|null);
+
+ /** PrivateClusterConfig peeringName */
+ peeringName?: (string|null);
+
+ /** PrivateClusterConfig masterGlobalAccessConfig */
+ masterGlobalAccessConfig?: (google.container.v1.IPrivateClusterMasterGlobalAccessConfig|null);
+ }
+
+ /** Represents a PrivateClusterConfig. */
+ class PrivateClusterConfig implements IPrivateClusterConfig {
+
+ /**
+ * Constructs a new PrivateClusterConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.IPrivateClusterConfig);
+
+ /** PrivateClusterConfig enablePrivateNodes. */
+ public enablePrivateNodes: boolean;
+
+ /** PrivateClusterConfig enablePrivateEndpoint. */
+ public enablePrivateEndpoint: boolean;
+
+ /** PrivateClusterConfig masterIpv4CidrBlock. */
+ public masterIpv4CidrBlock: string;
+
+ /** PrivateClusterConfig privateEndpoint. */
+ public privateEndpoint: string;
+
+ /** PrivateClusterConfig publicEndpoint. */
+ public publicEndpoint: string;
+
+ /** PrivateClusterConfig peeringName. */
+ public peeringName: string;
+
+ /** PrivateClusterConfig masterGlobalAccessConfig. */
+ public masterGlobalAccessConfig?: (google.container.v1.IPrivateClusterMasterGlobalAccessConfig|null);
+
+ /**
+ * Creates a new PrivateClusterConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PrivateClusterConfig instance
+ */
+ public static create(properties?: google.container.v1.IPrivateClusterConfig): google.container.v1.PrivateClusterConfig;
+
+ /**
+ * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages.
+ * @param message PrivateClusterConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages.
+ * @param message PrivateClusterConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PrivateClusterConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PrivateClusterConfig
+ * @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.PrivateClusterConfig;
+
+ /**
+ * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PrivateClusterConfig
+ * @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.PrivateClusterConfig;
+
+ /**
+ * Verifies a PrivateClusterConfig 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 PrivateClusterConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PrivateClusterConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.PrivateClusterConfig;
+
+ /**
+ * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified.
+ * @param message PrivateClusterConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.PrivateClusterConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PrivateClusterConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of an AuthenticatorGroupsConfig. */
+ interface IAuthenticatorGroupsConfig {
+
+ /** AuthenticatorGroupsConfig enabled */
+ enabled?: (boolean|null);
+
+ /** AuthenticatorGroupsConfig securityGroup */
+ securityGroup?: (string|null);
+ }
+
+ /** Represents an AuthenticatorGroupsConfig. */
+ class AuthenticatorGroupsConfig implements IAuthenticatorGroupsConfig {
+
+ /**
+ * Constructs a new AuthenticatorGroupsConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.IAuthenticatorGroupsConfig);
+
+ /** AuthenticatorGroupsConfig enabled. */
+ public enabled: boolean;
+
+ /** AuthenticatorGroupsConfig securityGroup. */
+ public securityGroup: string;
+
+ /**
+ * Creates a new AuthenticatorGroupsConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuthenticatorGroupsConfig instance
+ */
+ public static create(properties?: google.container.v1.IAuthenticatorGroupsConfig): google.container.v1.AuthenticatorGroupsConfig;
+
+ /**
+ * Encodes the specified AuthenticatorGroupsConfig message. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages.
+ * @param message AuthenticatorGroupsConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.IAuthenticatorGroupsConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuthenticatorGroupsConfig message, length delimited. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages.
+ * @param message AuthenticatorGroupsConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.IAuthenticatorGroupsConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuthenticatorGroupsConfig
+ * @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.AuthenticatorGroupsConfig;
+
+ /**
+ * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuthenticatorGroupsConfig
+ * @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.AuthenticatorGroupsConfig;
+
+ /**
+ * Verifies an AuthenticatorGroupsConfig 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 AuthenticatorGroupsConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuthenticatorGroupsConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.AuthenticatorGroupsConfig;
+
+ /**
+ * Creates a plain object from an AuthenticatorGroupsConfig message. Also converts values to other types if specified.
+ * @param message AuthenticatorGroupsConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.AuthenticatorGroupsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuthenticatorGroupsConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a CloudRunConfig. */
+ interface ICloudRunConfig {
+
/** CloudRunConfig disabled */
disabled?: (boolean|null);
+
+ /** CloudRunConfig loadBalancerType */
+ loadBalancerType?: (google.container.v1.CloudRunConfig.LoadBalancerType|keyof typeof google.container.v1.CloudRunConfig.LoadBalancerType|null);
}
/** Represents a CloudRunConfig. */
@@ -1994,6 +2464,9 @@ export namespace google {
/** CloudRunConfig disabled. */
public disabled: boolean;
+ /** CloudRunConfig loadBalancerType. */
+ public loadBalancerType: (google.container.v1.CloudRunConfig.LoadBalancerType|keyof typeof google.container.v1.CloudRunConfig.LoadBalancerType);
+
/**
* Creates a new CloudRunConfig instance using the specified properties.
* @param [properties] Properties to set
@@ -2065,86 +2538,186 @@ export namespace google {
public toJSON(): { [k: string]: any };
}
- /** Properties of a MasterAuthorizedNetworksConfig. */
- interface IMasterAuthorizedNetworksConfig {
+ namespace CloudRunConfig {
- /** MasterAuthorizedNetworksConfig enabled */
- enabled?: (boolean|null);
+ /** LoadBalancerType enum. */
+ enum LoadBalancerType {
+ LOAD_BALANCER_TYPE_UNSPECIFIED = 0,
+ LOAD_BALANCER_TYPE_EXTERNAL = 1,
+ LOAD_BALANCER_TYPE_INTERNAL = 2
+ }
+ }
- /** MasterAuthorizedNetworksConfig cidrBlocks */
- cidrBlocks?: (google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]|null);
+ /** Properties of a ConfigConnectorConfig. */
+ interface IConfigConnectorConfig {
+
+ /** ConfigConnectorConfig enabled */
+ enabled?: (boolean|null);
}
- /** Represents a MasterAuthorizedNetworksConfig. */
- class MasterAuthorizedNetworksConfig implements IMasterAuthorizedNetworksConfig {
+ /** Represents a ConfigConnectorConfig. */
+ class ConfigConnectorConfig implements IConfigConnectorConfig {
/**
- * Constructs a new MasterAuthorizedNetworksConfig.
+ * Constructs a new ConfigConnectorConfig.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IMasterAuthorizedNetworksConfig);
+ constructor(properties?: google.container.v1.IConfigConnectorConfig);
- /** MasterAuthorizedNetworksConfig enabled. */
+ /** ConfigConnectorConfig enabled. */
public enabled: boolean;
- /** MasterAuthorizedNetworksConfig cidrBlocks. */
- public cidrBlocks: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock[];
-
/**
- * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties.
+ * Creates a new ConfigConnectorConfig instance using the specified properties.
* @param [properties] Properties to set
- * @returns MasterAuthorizedNetworksConfig instance
+ * @returns ConfigConnectorConfig instance
*/
- public static create(properties?: google.container.v1.IMasterAuthorizedNetworksConfig): google.container.v1.MasterAuthorizedNetworksConfig;
+ public static create(properties?: google.container.v1.IConfigConnectorConfig): google.container.v1.ConfigConnectorConfig;
/**
- * Encodes the specified MasterAuthorizedNetworksConfig message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages.
- * @param message MasterAuthorizedNetworksConfig message or plain object to encode
+ * Encodes the specified ConfigConnectorConfig message. Does not implicitly {@link google.container.v1.ConfigConnectorConfig.verify|verify} messages.
+ * @param message ConfigConnectorConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IConfigConnectorConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified MasterAuthorizedNetworksConfig message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages.
- * @param message MasterAuthorizedNetworksConfig message or plain object to encode
+ * Encodes the specified ConfigConnectorConfig message, length delimited. Does not implicitly {@link google.container.v1.ConfigConnectorConfig.verify|verify} messages.
+ * @param message ConfigConnectorConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IConfigConnectorConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer.
+ * Decodes a ConfigConnectorConfig message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns MasterAuthorizedNetworksConfig
+ * @returns ConfigConnectorConfig
* @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.MasterAuthorizedNetworksConfig;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ConfigConnectorConfig;
/**
- * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer, length delimited.
+ * Decodes a ConfigConnectorConfig message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns MasterAuthorizedNetworksConfig
+ * @returns ConfigConnectorConfig
* @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.MasterAuthorizedNetworksConfig;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ConfigConnectorConfig;
/**
- * Verifies a MasterAuthorizedNetworksConfig message.
+ * Verifies a ConfigConnectorConfig 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 MasterAuthorizedNetworksConfig message from a plain object. Also converts values to their respective internal types.
+ * Creates a ConfigConnectorConfig message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns MasterAuthorizedNetworksConfig
+ * @returns ConfigConnectorConfig
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.MasterAuthorizedNetworksConfig;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.ConfigConnectorConfig;
+
+ /**
+ * Creates a plain object from a ConfigConnectorConfig message. Also converts values to other types if specified.
+ * @param message ConfigConnectorConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.ConfigConnectorConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ConfigConnectorConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a MasterAuthorizedNetworksConfig. */
+ interface IMasterAuthorizedNetworksConfig {
+
+ /** MasterAuthorizedNetworksConfig enabled */
+ enabled?: (boolean|null);
+
+ /** MasterAuthorizedNetworksConfig cidrBlocks */
+ cidrBlocks?: (google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]|null);
+ }
+
+ /** Represents a MasterAuthorizedNetworksConfig. */
+ class MasterAuthorizedNetworksConfig implements IMasterAuthorizedNetworksConfig {
+
+ /**
+ * Constructs a new MasterAuthorizedNetworksConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.IMasterAuthorizedNetworksConfig);
+
+ /** MasterAuthorizedNetworksConfig enabled. */
+ public enabled: boolean;
+
+ /** MasterAuthorizedNetworksConfig cidrBlocks. */
+ public cidrBlocks: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock[];
+
+ /**
+ * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MasterAuthorizedNetworksConfig instance
+ */
+ public static create(properties?: google.container.v1.IMasterAuthorizedNetworksConfig): google.container.v1.MasterAuthorizedNetworksConfig;
+
+ /**
+ * Encodes the specified MasterAuthorizedNetworksConfig message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages.
+ * @param message MasterAuthorizedNetworksConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MasterAuthorizedNetworksConfig message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages.
+ * @param message MasterAuthorizedNetworksConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MasterAuthorizedNetworksConfig
+ * @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.MasterAuthorizedNetworksConfig;
+
+ /**
+ * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MasterAuthorizedNetworksConfig
+ * @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.MasterAuthorizedNetworksConfig;
+
+ /**
+ * Verifies a MasterAuthorizedNetworksConfig 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 MasterAuthorizedNetworksConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MasterAuthorizedNetworksConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.MasterAuthorizedNetworksConfig;
/**
* Creates a plain object from a MasterAuthorizedNetworksConfig message. Also converts values to other types if specified.
@@ -2583,6 +3156,9 @@ export namespace google {
/** IPAllocationPolicy tpuIpv4CidrBlock */
tpuIpv4CidrBlock?: (string|null);
+
+ /** IPAllocationPolicy useRoutes */
+ useRoutes?: (boolean|null);
}
/** Represents a IPAllocationPolicy. */
@@ -2630,6 +3206,9 @@ export namespace google {
/** IPAllocationPolicy tpuIpv4CidrBlock. */
public tpuIpv4CidrBlock: string;
+ /** IPAllocationPolicy useRoutes. */
+ public useRoutes: boolean;
+
/**
* Creates a new IPAllocationPolicy instance using the specified properties.
* @param [properties] Properties to set
@@ -2794,6 +3373,15 @@ export namespace google {
/** Cluster verticalPodAutoscaling */
verticalPodAutoscaling?: (google.container.v1.IVerticalPodAutoscaling|null);
+ /** Cluster shieldedNodes */
+ shieldedNodes?: (google.container.v1.IShieldedNodes|null);
+
+ /** Cluster releaseChannel */
+ releaseChannel?: (google.container.v1.IReleaseChannel|null);
+
+ /** Cluster workloadIdentityConfig */
+ workloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null);
+
/** Cluster selfLink */
selfLink?: (string|null);
@@ -2948,6 +3536,15 @@ export namespace google {
/** Cluster verticalPodAutoscaling. */
public verticalPodAutoscaling?: (google.container.v1.IVerticalPodAutoscaling|null);
+ /** Cluster shieldedNodes. */
+ public shieldedNodes?: (google.container.v1.IShieldedNodes|null);
+
+ /** Cluster releaseChannel. */
+ public releaseChannel?: (google.container.v1.IReleaseChannel|null);
+
+ /** Cluster workloadIdentityConfig. */
+ public workloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null);
+
/** Cluster selfLink. */
public selfLink: string;
@@ -3108,6 +3705,12 @@ export namespace google {
/** ClusterUpdate desiredDatabaseEncryption */
desiredDatabaseEncryption?: (google.container.v1.IDatabaseEncryption|null);
+ /** ClusterUpdate desiredWorkloadIdentityConfig */
+ desiredWorkloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null);
+
+ /** ClusterUpdate desiredShieldedNodes */
+ desiredShieldedNodes?: (google.container.v1.IShieldedNodes|null);
+
/** ClusterUpdate desiredNodePoolAutoscaling */
desiredNodePoolAutoscaling?: (google.container.v1.INodePoolAutoscaling|null);
@@ -3132,9 +3735,18 @@ export namespace google {
/** ClusterUpdate desiredVerticalPodAutoscaling */
desiredVerticalPodAutoscaling?: (google.container.v1.IVerticalPodAutoscaling|null);
+ /** ClusterUpdate desiredPrivateClusterConfig */
+ desiredPrivateClusterConfig?: (google.container.v1.IPrivateClusterConfig|null);
+
/** ClusterUpdate desiredIntraNodeVisibilityConfig */
desiredIntraNodeVisibilityConfig?: (google.container.v1.IIntraNodeVisibilityConfig|null);
+ /** ClusterUpdate desiredDefaultSnatStatus */
+ desiredDefaultSnatStatus?: (google.container.v1.IDefaultSnatStatus|null);
+
+ /** ClusterUpdate desiredReleaseChannel */
+ desiredReleaseChannel?: (google.container.v1.IReleaseChannel|null);
+
/** ClusterUpdate desiredMasterVersion */
desiredMasterVersion?: (string|null);
}
@@ -3166,6 +3778,12 @@ export namespace google {
/** ClusterUpdate desiredDatabaseEncryption. */
public desiredDatabaseEncryption?: (google.container.v1.IDatabaseEncryption|null);
+ /** ClusterUpdate desiredWorkloadIdentityConfig. */
+ public desiredWorkloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null);
+
+ /** ClusterUpdate desiredShieldedNodes. */
+ public desiredShieldedNodes?: (google.container.v1.IShieldedNodes|null);
+
/** ClusterUpdate desiredNodePoolAutoscaling. */
public desiredNodePoolAutoscaling?: (google.container.v1.INodePoolAutoscaling|null);
@@ -3190,9 +3808,18 @@ export namespace google {
/** ClusterUpdate desiredVerticalPodAutoscaling. */
public desiredVerticalPodAutoscaling?: (google.container.v1.IVerticalPodAutoscaling|null);
+ /** ClusterUpdate desiredPrivateClusterConfig. */
+ public desiredPrivateClusterConfig?: (google.container.v1.IPrivateClusterConfig|null);
+
/** ClusterUpdate desiredIntraNodeVisibilityConfig. */
public desiredIntraNodeVisibilityConfig?: (google.container.v1.IIntraNodeVisibilityConfig|null);
+ /** ClusterUpdate desiredDefaultSnatStatus. */
+ public desiredDefaultSnatStatus?: (google.container.v1.IDefaultSnatStatus|null);
+
+ /** ClusterUpdate desiredReleaseChannel. */
+ public desiredReleaseChannel?: (google.container.v1.IReleaseChannel|null);
+
/** ClusterUpdate desiredMasterVersion. */
public desiredMasterVersion: string;
@@ -3303,6 +3930,9 @@ export namespace google {
/** Operation endTime */
endTime?: (string|null);
+ /** Operation progress */
+ progress?: (google.container.v1.IOperationProgress|null);
+
/** Operation clusterConditions */
clusterConditions?: (google.container.v1.IStatusCondition[]|null);
@@ -3352,6 +3982,9 @@ export namespace google {
/** Operation endTime. */
public endTime: string;
+ /** Operation progress. */
+ public progress?: (google.container.v1.IOperationProgress|null);
+
/** Operation clusterConditions. */
public clusterConditions: google.container.v1.IStatusCondition[];
@@ -3462,6 +4095,228 @@ export namespace google {
}
}
+ /** Properties of an OperationProgress. */
+ interface IOperationProgress {
+
+ /** OperationProgress name */
+ name?: (string|null);
+
+ /** OperationProgress status */
+ status?: (google.container.v1.Operation.Status|keyof typeof google.container.v1.Operation.Status|null);
+
+ /** OperationProgress metrics */
+ metrics?: (google.container.v1.OperationProgress.IMetric[]|null);
+
+ /** OperationProgress stages */
+ stages?: (google.container.v1.IOperationProgress[]|null);
+ }
+
+ /** Represents an OperationProgress. */
+ class OperationProgress implements IOperationProgress {
+
+ /**
+ * Constructs a new OperationProgress.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.IOperationProgress);
+
+ /** OperationProgress name. */
+ public name: string;
+
+ /** OperationProgress status. */
+ public status: (google.container.v1.Operation.Status|keyof typeof google.container.v1.Operation.Status);
+
+ /** OperationProgress metrics. */
+ public metrics: google.container.v1.OperationProgress.IMetric[];
+
+ /** OperationProgress stages. */
+ public stages: google.container.v1.IOperationProgress[];
+
+ /**
+ * Creates a new OperationProgress instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationProgress instance
+ */
+ public static create(properties?: google.container.v1.IOperationProgress): google.container.v1.OperationProgress;
+
+ /**
+ * Encodes the specified OperationProgress message. Does not implicitly {@link google.container.v1.OperationProgress.verify|verify} messages.
+ * @param message OperationProgress message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.IOperationProgress, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationProgress message, length delimited. Does not implicitly {@link google.container.v1.OperationProgress.verify|verify} messages.
+ * @param message OperationProgress message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.IOperationProgress, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationProgress message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationProgress
+ * @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.OperationProgress;
+
+ /**
+ * Decodes an OperationProgress message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationProgress
+ * @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.OperationProgress;
+
+ /**
+ * Verifies an OperationProgress 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 OperationProgress message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationProgress
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.OperationProgress;
+
+ /**
+ * Creates a plain object from an OperationProgress message. Also converts values to other types if specified.
+ * @param message OperationProgress
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.OperationProgress, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationProgress to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ namespace OperationProgress {
+
+ /** Properties of a Metric. */
+ interface IMetric {
+
+ /** Metric name */
+ name?: (string|null);
+
+ /** Metric intValue */
+ intValue?: (number|Long|string|null);
+
+ /** Metric doubleValue */
+ doubleValue?: (number|null);
+
+ /** Metric stringValue */
+ stringValue?: (string|null);
+ }
+
+ /** Represents a Metric. */
+ class Metric implements IMetric {
+
+ /**
+ * Constructs a new Metric.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.OperationProgress.IMetric);
+
+ /** Metric name. */
+ public name: string;
+
+ /** Metric intValue. */
+ public intValue: (number|Long|string);
+
+ /** Metric doubleValue. */
+ public doubleValue: number;
+
+ /** Metric stringValue. */
+ public stringValue: string;
+
+ /** Metric value. */
+ public value?: ("intValue"|"doubleValue"|"stringValue");
+
+ /**
+ * Creates a new Metric instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Metric instance
+ */
+ public static create(properties?: google.container.v1.OperationProgress.IMetric): google.container.v1.OperationProgress.Metric;
+
+ /**
+ * Encodes the specified Metric message. Does not implicitly {@link google.container.v1.OperationProgress.Metric.verify|verify} messages.
+ * @param message Metric message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.OperationProgress.IMetric, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.container.v1.OperationProgress.Metric.verify|verify} messages.
+ * @param message Metric message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.OperationProgress.IMetric, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Metric message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Metric
+ * @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.OperationProgress.Metric;
+
+ /**
+ * Decodes a Metric message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Metric
+ * @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.OperationProgress.Metric;
+
+ /**
+ * Verifies a Metric 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 Metric message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Metric
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.OperationProgress.Metric;
+
+ /**
+ * Creates a plain object from a Metric message. Also converts values to other types if specified.
+ * @param message Metric
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.OperationProgress.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Metric to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+ }
+
/** Properties of a CreateClusterRequest. */
interface ICreateClusterRequest {
@@ -3815,6 +4670,15 @@ export namespace google {
/** UpdateNodePoolRequest name */
name?: (string|null);
+
+ /** UpdateNodePoolRequest locations */
+ locations?: (string[]|null);
+
+ /** UpdateNodePoolRequest workloadMetadataConfig */
+ workloadMetadataConfig?: (google.container.v1.IWorkloadMetadataConfig|null);
+
+ /** UpdateNodePoolRequest upgradeSettings */
+ upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null);
}
/** Represents an UpdateNodePoolRequest. */
@@ -3847,6 +4711,15 @@ export namespace google {
/** UpdateNodePoolRequest name. */
public name: string;
+ /** UpdateNodePoolRequest locations. */
+ public locations: string[];
+
+ /** UpdateNodePoolRequest workloadMetadataConfig. */
+ public workloadMetadataConfig?: (google.container.v1.IWorkloadMetadataConfig|null);
+
+ /** UpdateNodePoolRequest upgradeSettings. */
+ public upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null);
+
/**
* Creates a new UpdateNodePoolRequest instance using the specified properties.
* @param [properties] Properties to set
@@ -5578,6 +6451,9 @@ export namespace google {
/** ServerConfig validMasterVersions */
validMasterVersions?: (string[]|null);
+
+ /** ServerConfig channels */
+ channels?: (google.container.v1.ServerConfig.IReleaseChannelConfig[]|null);
}
/** Represents a ServerConfig. */
@@ -5604,6 +6480,9 @@ export namespace google {
/** ServerConfig validMasterVersions. */
public validMasterVersions: string[];
+ /** ServerConfig channels. */
+ public channels: google.container.v1.ServerConfig.IReleaseChannelConfig[];
+
/**
* Creates a new ServerConfig instance using the specified properties.
* @param [properties] Properties to set
@@ -5675,7 +6554,112 @@ export namespace google {
public toJSON(): { [k: string]: any };
}
- /** Properties of a CreateNodePoolRequest. */
+ namespace ServerConfig {
+
+ /** Properties of a ReleaseChannelConfig. */
+ interface IReleaseChannelConfig {
+
+ /** ReleaseChannelConfig channel */
+ channel?: (google.container.v1.ReleaseChannel.Channel|keyof typeof google.container.v1.ReleaseChannel.Channel|null);
+
+ /** ReleaseChannelConfig defaultVersion */
+ defaultVersion?: (string|null);
+
+ /** ReleaseChannelConfig validVersions */
+ validVersions?: (string[]|null);
+ }
+
+ /** Represents a ReleaseChannelConfig. */
+ class ReleaseChannelConfig implements IReleaseChannelConfig {
+
+ /**
+ * Constructs a new ReleaseChannelConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.ServerConfig.IReleaseChannelConfig);
+
+ /** ReleaseChannelConfig channel. */
+ public channel: (google.container.v1.ReleaseChannel.Channel|keyof typeof google.container.v1.ReleaseChannel.Channel);
+
+ /** ReleaseChannelConfig defaultVersion. */
+ public defaultVersion: string;
+
+ /** ReleaseChannelConfig validVersions. */
+ public validVersions: string[];
+
+ /**
+ * Creates a new ReleaseChannelConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReleaseChannelConfig instance
+ */
+ public static create(properties?: google.container.v1.ServerConfig.IReleaseChannelConfig): google.container.v1.ServerConfig.ReleaseChannelConfig;
+
+ /**
+ * Encodes the specified ReleaseChannelConfig message. Does not implicitly {@link google.container.v1.ServerConfig.ReleaseChannelConfig.verify|verify} messages.
+ * @param message ReleaseChannelConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.ServerConfig.IReleaseChannelConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReleaseChannelConfig message, length delimited. Does not implicitly {@link google.container.v1.ServerConfig.ReleaseChannelConfig.verify|verify} messages.
+ * @param message ReleaseChannelConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.ServerConfig.IReleaseChannelConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReleaseChannelConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReleaseChannelConfig
+ * @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.ServerConfig.ReleaseChannelConfig;
+
+ /**
+ * Decodes a ReleaseChannelConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReleaseChannelConfig
+ * @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.ServerConfig.ReleaseChannelConfig;
+
+ /**
+ * Verifies a ReleaseChannelConfig 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 ReleaseChannelConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReleaseChannelConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.ServerConfig.ReleaseChannelConfig;
+
+ /**
+ * Creates a plain object from a ReleaseChannelConfig message. Also converts values to other types if specified.
+ * @param message ReleaseChannelConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.ServerConfig.ReleaseChannelConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReleaseChannelConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+ }
+
+ /** Properties of a CreateNodePoolRequest. */
interface ICreateNodePoolRequest {
/** CreateNodePoolRequest projectId */
@@ -6137,6 +7121,9 @@ export namespace google {
/** NodePool initialNodeCount */
initialNodeCount?: (number|null);
+ /** NodePool locations */
+ locations?: (string[]|null);
+
/** NodePool selfLink */
selfLink?: (string|null);
@@ -6166,6 +7153,9 @@ export namespace google {
/** NodePool podIpv4CidrSize */
podIpv4CidrSize?: (number|null);
+
+ /** NodePool upgradeSettings */
+ upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null);
}
/** Represents a NodePool. */
@@ -6186,6 +7176,9 @@ export namespace google {
/** NodePool initialNodeCount. */
public initialNodeCount: number;
+ /** NodePool locations. */
+ public locations: string[];
+
/** NodePool selfLink. */
public selfLink: string;
@@ -6216,6 +7209,9 @@ export namespace google {
/** NodePool podIpv4CidrSize. */
public podIpv4CidrSize: number;
+ /** NodePool upgradeSettings. */
+ public upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null);
+
/**
* Creates a new NodePool instance using the specified properties.
* @param [properties] Properties to set
@@ -6289,6 +7285,102 @@ export namespace google {
namespace NodePool {
+ /** Properties of an UpgradeSettings. */
+ interface IUpgradeSettings {
+
+ /** UpgradeSettings maxSurge */
+ maxSurge?: (number|null);
+
+ /** UpgradeSettings maxUnavailable */
+ maxUnavailable?: (number|null);
+ }
+
+ /** Represents an UpgradeSettings. */
+ class UpgradeSettings implements IUpgradeSettings {
+
+ /**
+ * Constructs a new UpgradeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.NodePool.IUpgradeSettings);
+
+ /** UpgradeSettings maxSurge. */
+ public maxSurge: number;
+
+ /** UpgradeSettings maxUnavailable. */
+ public maxUnavailable: number;
+
+ /**
+ * Creates a new UpgradeSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpgradeSettings instance
+ */
+ public static create(properties?: google.container.v1.NodePool.IUpgradeSettings): google.container.v1.NodePool.UpgradeSettings;
+
+ /**
+ * Encodes the specified UpgradeSettings message. Does not implicitly {@link google.container.v1.NodePool.UpgradeSettings.verify|verify} messages.
+ * @param message UpgradeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.NodePool.IUpgradeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpgradeSettings message, length delimited. Does not implicitly {@link google.container.v1.NodePool.UpgradeSettings.verify|verify} messages.
+ * @param message UpgradeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.NodePool.IUpgradeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpgradeSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpgradeSettings
+ * @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.NodePool.UpgradeSettings;
+
+ /**
+ * Decodes an UpgradeSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpgradeSettings
+ * @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.NodePool.UpgradeSettings;
+
+ /**
+ * Verifies an UpgradeSettings 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 UpgradeSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpgradeSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.NodePool.UpgradeSettings;
+
+ /**
+ * Creates a plain object from an UpgradeSettings message. Also converts values to other types if specified.
+ * @param message UpgradeSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.NodePool.UpgradeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpgradeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
/** Status enum. */
enum Status {
STATUS_UNSPECIFIED = 0,
@@ -6323,2520 +7415,3303 @@ export namespace google {
*/
constructor(properties?: google.container.v1.INodeManagement);
- /** NodeManagement autoUpgrade. */
- public autoUpgrade: boolean;
+ /** NodeManagement autoUpgrade. */
+ public autoUpgrade: boolean;
+
+ /** NodeManagement autoRepair. */
+ public autoRepair: boolean;
+
+ /** NodeManagement upgradeOptions. */
+ public upgradeOptions?: (google.container.v1.IAutoUpgradeOptions|null);
+
+ /**
+ * Creates a new NodeManagement instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeManagement instance
+ */
+ public static create(properties?: google.container.v1.INodeManagement): google.container.v1.NodeManagement;
+
+ /**
+ * Encodes the specified NodeManagement message. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages.
+ * @param message NodeManagement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.INodeManagement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeManagement message, length delimited. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages.
+ * @param message NodeManagement message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.INodeManagement, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeManagement message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeManagement
+ * @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.NodeManagement;
+
+ /**
+ * Decodes a NodeManagement message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeManagement
+ * @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.NodeManagement;
+
+ /**
+ * Verifies a NodeManagement 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 NodeManagement message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeManagement
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.NodeManagement;
+
+ /**
+ * Creates a plain object from a NodeManagement message. Also converts values to other types if specified.
+ * @param message NodeManagement
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.NodeManagement, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeManagement to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of an AutoUpgradeOptions. */
+ interface IAutoUpgradeOptions {
+
+ /** AutoUpgradeOptions autoUpgradeStartTime */
+ autoUpgradeStartTime?: (string|null);
+
+ /** AutoUpgradeOptions description */
+ description?: (string|null);
+ }
+
+ /** Represents an AutoUpgradeOptions. */
+ class AutoUpgradeOptions implements IAutoUpgradeOptions {
+
+ /**
+ * Constructs a new AutoUpgradeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.IAutoUpgradeOptions);
+
+ /** AutoUpgradeOptions autoUpgradeStartTime. */
+ public autoUpgradeStartTime: string;
+
+ /** AutoUpgradeOptions description. */
+ public description: string;
+
+ /**
+ * Creates a new AutoUpgradeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AutoUpgradeOptions instance
+ */
+ public static create(properties?: google.container.v1.IAutoUpgradeOptions): google.container.v1.AutoUpgradeOptions;
+
+ /**
+ * Encodes the specified AutoUpgradeOptions message. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages.
+ * @param message AutoUpgradeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.IAutoUpgradeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AutoUpgradeOptions message, length delimited. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages.
+ * @param message AutoUpgradeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.IAutoUpgradeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AutoUpgradeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AutoUpgradeOptions
+ * @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.AutoUpgradeOptions;
+
+ /**
+ * Decodes an AutoUpgradeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AutoUpgradeOptions
+ * @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.AutoUpgradeOptions;
+
+ /**
+ * Verifies an AutoUpgradeOptions 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 AutoUpgradeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AutoUpgradeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.AutoUpgradeOptions;
+
+ /**
+ * Creates a plain object from an AutoUpgradeOptions message. Also converts values to other types if specified.
+ * @param message AutoUpgradeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.AutoUpgradeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AutoUpgradeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a MaintenancePolicy. */
+ interface IMaintenancePolicy {
+
+ /** MaintenancePolicy window */
+ window?: (google.container.v1.IMaintenanceWindow|null);
+
+ /** MaintenancePolicy resourceVersion */
+ resourceVersion?: (string|null);
+ }
+
+ /** Represents a MaintenancePolicy. */
+ class MaintenancePolicy implements IMaintenancePolicy {
+
+ /**
+ * Constructs a new MaintenancePolicy.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.IMaintenancePolicy);
+
+ /** MaintenancePolicy window. */
+ public window?: (google.container.v1.IMaintenanceWindow|null);
+
+ /** MaintenancePolicy resourceVersion. */
+ public resourceVersion: string;
+
+ /**
+ * Creates a new MaintenancePolicy instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MaintenancePolicy instance
+ */
+ public static create(properties?: google.container.v1.IMaintenancePolicy): google.container.v1.MaintenancePolicy;
+
+ /**
+ * Encodes the specified MaintenancePolicy message. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages.
+ * @param message MaintenancePolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.IMaintenancePolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MaintenancePolicy message, length delimited. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages.
+ * @param message MaintenancePolicy message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.IMaintenancePolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MaintenancePolicy message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MaintenancePolicy
+ * @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.MaintenancePolicy;
+
+ /**
+ * Decodes a MaintenancePolicy message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MaintenancePolicy
+ * @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.MaintenancePolicy;
+
+ /**
+ * Verifies a MaintenancePolicy 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 MaintenancePolicy message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MaintenancePolicy
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.MaintenancePolicy;
+
+ /**
+ * Creates a plain object from a MaintenancePolicy message. Also converts values to other types if specified.
+ * @param message MaintenancePolicy
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.MaintenancePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MaintenancePolicy to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a MaintenanceWindow. */
+ interface IMaintenanceWindow {
+
+ /** MaintenanceWindow dailyMaintenanceWindow */
+ dailyMaintenanceWindow?: (google.container.v1.IDailyMaintenanceWindow|null);
+
+ /** MaintenanceWindow recurringWindow */
+ recurringWindow?: (google.container.v1.IRecurringTimeWindow|null);
+
+ /** MaintenanceWindow maintenanceExclusions */
+ maintenanceExclusions?: ({ [k: string]: google.container.v1.ITimeWindow }|null);
+ }
+
+ /** Represents a MaintenanceWindow. */
+ class MaintenanceWindow implements IMaintenanceWindow {
+
+ /**
+ * Constructs a new MaintenanceWindow.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.IMaintenanceWindow);
+
+ /** MaintenanceWindow dailyMaintenanceWindow. */
+ public dailyMaintenanceWindow?: (google.container.v1.IDailyMaintenanceWindow|null);
+
+ /** MaintenanceWindow recurringWindow. */
+ public recurringWindow?: (google.container.v1.IRecurringTimeWindow|null);
+
+ /** MaintenanceWindow maintenanceExclusions. */
+ public maintenanceExclusions: { [k: string]: google.container.v1.ITimeWindow };
+
+ /** MaintenanceWindow policy. */
+ public policy?: ("dailyMaintenanceWindow"|"recurringWindow");
+
+ /**
+ * Creates a new MaintenanceWindow instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MaintenanceWindow instance
+ */
+ public static create(properties?: google.container.v1.IMaintenanceWindow): google.container.v1.MaintenanceWindow;
+
+ /**
+ * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages.
+ * @param message MaintenanceWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages.
+ * @param message MaintenanceWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MaintenanceWindow
+ * @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.MaintenanceWindow;
+
+ /**
+ * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MaintenanceWindow
+ * @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.MaintenanceWindow;
+
+ /**
+ * Verifies a MaintenanceWindow 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 MaintenanceWindow message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MaintenanceWindow
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.MaintenanceWindow;
+
+ /**
+ * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified.
+ * @param message MaintenanceWindow
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.MaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MaintenanceWindow to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a TimeWindow. */
+ interface ITimeWindow {
+
+ /** TimeWindow startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** TimeWindow endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a TimeWindow. */
+ class TimeWindow implements ITimeWindow {
+
+ /**
+ * Constructs a new TimeWindow.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.ITimeWindow);
+
+ /** TimeWindow startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** TimeWindow endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new TimeWindow instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TimeWindow instance
+ */
+ public static create(properties?: google.container.v1.ITimeWindow): google.container.v1.TimeWindow;
+
+ /**
+ * Encodes the specified TimeWindow message. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages.
+ * @param message TimeWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.ITimeWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TimeWindow message, length delimited. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages.
+ * @param message TimeWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.ITimeWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TimeWindow message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TimeWindow
+ * @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.TimeWindow;
+
+ /**
+ * Decodes a TimeWindow message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TimeWindow
+ * @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.TimeWindow;
+
+ /**
+ * Verifies a TimeWindow 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 TimeWindow message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TimeWindow
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.TimeWindow;
+
+ /**
+ * Creates a plain object from a TimeWindow message. Also converts values to other types if specified.
+ * @param message TimeWindow
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.TimeWindow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TimeWindow to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a RecurringTimeWindow. */
+ interface IRecurringTimeWindow {
+
+ /** RecurringTimeWindow window */
+ window?: (google.container.v1.ITimeWindow|null);
+
+ /** RecurringTimeWindow recurrence */
+ recurrence?: (string|null);
+ }
+
+ /** Represents a RecurringTimeWindow. */
+ class RecurringTimeWindow implements IRecurringTimeWindow {
+
+ /**
+ * Constructs a new RecurringTimeWindow.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.IRecurringTimeWindow);
+
+ /** RecurringTimeWindow window. */
+ public window?: (google.container.v1.ITimeWindow|null);
+
+ /** RecurringTimeWindow recurrence. */
+ public recurrence: string;
+
+ /**
+ * Creates a new RecurringTimeWindow instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RecurringTimeWindow instance
+ */
+ public static create(properties?: google.container.v1.IRecurringTimeWindow): google.container.v1.RecurringTimeWindow;
+
+ /**
+ * Encodes the specified RecurringTimeWindow message. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages.
+ * @param message RecurringTimeWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.IRecurringTimeWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RecurringTimeWindow message, length delimited. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages.
+ * @param message RecurringTimeWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.IRecurringTimeWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RecurringTimeWindow message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RecurringTimeWindow
+ * @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.RecurringTimeWindow;
+
+ /**
+ * Decodes a RecurringTimeWindow message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RecurringTimeWindow
+ * @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.RecurringTimeWindow;
+
+ /**
+ * Verifies a RecurringTimeWindow 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 RecurringTimeWindow message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RecurringTimeWindow
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.RecurringTimeWindow;
+
+ /**
+ * Creates a plain object from a RecurringTimeWindow message. Also converts values to other types if specified.
+ * @param message RecurringTimeWindow
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.RecurringTimeWindow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RecurringTimeWindow to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a DailyMaintenanceWindow. */
+ interface IDailyMaintenanceWindow {
+
+ /** DailyMaintenanceWindow startTime */
+ startTime?: (string|null);
+
+ /** DailyMaintenanceWindow duration */
+ duration?: (string|null);
+ }
+
+ /** Represents a DailyMaintenanceWindow. */
+ class DailyMaintenanceWindow implements IDailyMaintenanceWindow {
+
+ /**
+ * Constructs a new DailyMaintenanceWindow.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.IDailyMaintenanceWindow);
+
+ /** DailyMaintenanceWindow startTime. */
+ public startTime: string;
+
+ /** DailyMaintenanceWindow duration. */
+ public duration: string;
+
+ /**
+ * Creates a new DailyMaintenanceWindow instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DailyMaintenanceWindow instance
+ */
+ public static create(properties?: google.container.v1.IDailyMaintenanceWindow): google.container.v1.DailyMaintenanceWindow;
+
+ /**
+ * Encodes the specified DailyMaintenanceWindow message. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages.
+ * @param message DailyMaintenanceWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.IDailyMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DailyMaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages.
+ * @param message DailyMaintenanceWindow message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.IDailyMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DailyMaintenanceWindow message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DailyMaintenanceWindow
+ * @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.DailyMaintenanceWindow;
+
+ /**
+ * Decodes a DailyMaintenanceWindow message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DailyMaintenanceWindow
+ * @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.DailyMaintenanceWindow;
+
+ /**
+ * Verifies a DailyMaintenanceWindow 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 DailyMaintenanceWindow message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DailyMaintenanceWindow
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.DailyMaintenanceWindow;
+
+ /**
+ * Creates a plain object from a DailyMaintenanceWindow message. Also converts values to other types if specified.
+ * @param message DailyMaintenanceWindow
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.DailyMaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DailyMaintenanceWindow to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a SetNodePoolManagementRequest. */
+ interface ISetNodePoolManagementRequest {
+
+ /** SetNodePoolManagementRequest projectId */
+ projectId?: (string|null);
+
+ /** SetNodePoolManagementRequest zone */
+ zone?: (string|null);
+
+ /** SetNodePoolManagementRequest clusterId */
+ clusterId?: (string|null);
+
+ /** SetNodePoolManagementRequest nodePoolId */
+ nodePoolId?: (string|null);
+
+ /** SetNodePoolManagementRequest management */
+ management?: (google.container.v1.INodeManagement|null);
+
+ /** SetNodePoolManagementRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a SetNodePoolManagementRequest. */
+ class SetNodePoolManagementRequest implements ISetNodePoolManagementRequest {
+
+ /**
+ * Constructs a new SetNodePoolManagementRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.ISetNodePoolManagementRequest);
+
+ /** SetNodePoolManagementRequest projectId. */
+ public projectId: string;
+
+ /** SetNodePoolManagementRequest zone. */
+ public zone: string;
+
+ /** SetNodePoolManagementRequest clusterId. */
+ public clusterId: string;
+
+ /** SetNodePoolManagementRequest nodePoolId. */
+ public nodePoolId: string;
- /** NodeManagement autoRepair. */
- public autoRepair: boolean;
+ /** SetNodePoolManagementRequest management. */
+ public management?: (google.container.v1.INodeManagement|null);
- /** NodeManagement upgradeOptions. */
- public upgradeOptions?: (google.container.v1.IAutoUpgradeOptions|null);
+ /** SetNodePoolManagementRequest name. */
+ public name: string;
/**
- * Creates a new NodeManagement instance using the specified properties.
+ * Creates a new SetNodePoolManagementRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns NodeManagement instance
+ * @returns SetNodePoolManagementRequest instance
*/
- public static create(properties?: google.container.v1.INodeManagement): google.container.v1.NodeManagement;
+ public static create(properties?: google.container.v1.ISetNodePoolManagementRequest): google.container.v1.SetNodePoolManagementRequest;
/**
- * Encodes the specified NodeManagement message. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages.
- * @param message NodeManagement message or plain object to encode
+ * Encodes the specified SetNodePoolManagementRequest message. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages.
+ * @param message SetNodePoolManagementRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.INodeManagement, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.ISetNodePoolManagementRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified NodeManagement message, length delimited. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages.
- * @param message NodeManagement message or plain object to encode
+ * Encodes the specified SetNodePoolManagementRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages.
+ * @param message SetNodePoolManagementRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.INodeManagement, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.ISetNodePoolManagementRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a NodeManagement message from the specified reader or buffer.
+ * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns NodeManagement
+ * @returns SetNodePoolManagementRequest
* @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.NodeManagement;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetNodePoolManagementRequest;
/**
- * Decodes a NodeManagement message from the specified reader or buffer, length delimited.
+ * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns NodeManagement
+ * @returns SetNodePoolManagementRequest
* @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.NodeManagement;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetNodePoolManagementRequest;
/**
- * Verifies a NodeManagement message.
+ * Verifies a SetNodePoolManagementRequest 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 NodeManagement message from a plain object. Also converts values to their respective internal types.
+ * Creates a SetNodePoolManagementRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns NodeManagement
+ * @returns SetNodePoolManagementRequest
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.NodeManagement;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.SetNodePoolManagementRequest;
/**
- * Creates a plain object from a NodeManagement message. Also converts values to other types if specified.
- * @param message NodeManagement
+ * Creates a plain object from a SetNodePoolManagementRequest message. Also converts values to other types if specified.
+ * @param message SetNodePoolManagementRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.NodeManagement, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.SetNodePoolManagementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this NodeManagement to JSON.
+ * Converts this SetNodePoolManagementRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of an AutoUpgradeOptions. */
- interface IAutoUpgradeOptions {
+ /** Properties of a SetNodePoolSizeRequest. */
+ interface ISetNodePoolSizeRequest {
- /** AutoUpgradeOptions autoUpgradeStartTime */
- autoUpgradeStartTime?: (string|null);
+ /** SetNodePoolSizeRequest projectId */
+ projectId?: (string|null);
- /** AutoUpgradeOptions description */
- description?: (string|null);
+ /** SetNodePoolSizeRequest zone */
+ zone?: (string|null);
+
+ /** SetNodePoolSizeRequest clusterId */
+ clusterId?: (string|null);
+
+ /** SetNodePoolSizeRequest nodePoolId */
+ nodePoolId?: (string|null);
+
+ /** SetNodePoolSizeRequest nodeCount */
+ nodeCount?: (number|null);
+
+ /** SetNodePoolSizeRequest name */
+ name?: (string|null);
}
- /** Represents an AutoUpgradeOptions. */
- class AutoUpgradeOptions implements IAutoUpgradeOptions {
+ /** Represents a SetNodePoolSizeRequest. */
+ class SetNodePoolSizeRequest implements ISetNodePoolSizeRequest {
/**
- * Constructs a new AutoUpgradeOptions.
+ * Constructs a new SetNodePoolSizeRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IAutoUpgradeOptions);
+ constructor(properties?: google.container.v1.ISetNodePoolSizeRequest);
- /** AutoUpgradeOptions autoUpgradeStartTime. */
- public autoUpgradeStartTime: string;
+ /** SetNodePoolSizeRequest projectId. */
+ public projectId: string;
- /** AutoUpgradeOptions description. */
- public description: string;
+ /** SetNodePoolSizeRequest zone. */
+ public zone: string;
+
+ /** SetNodePoolSizeRequest clusterId. */
+ public clusterId: string;
+
+ /** SetNodePoolSizeRequest nodePoolId. */
+ public nodePoolId: string;
+
+ /** SetNodePoolSizeRequest nodeCount. */
+ public nodeCount: number;
+
+ /** SetNodePoolSizeRequest name. */
+ public name: string;
/**
- * Creates a new AutoUpgradeOptions instance using the specified properties.
+ * Creates a new SetNodePoolSizeRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns AutoUpgradeOptions instance
+ * @returns SetNodePoolSizeRequest instance
*/
- public static create(properties?: google.container.v1.IAutoUpgradeOptions): google.container.v1.AutoUpgradeOptions;
+ public static create(properties?: google.container.v1.ISetNodePoolSizeRequest): google.container.v1.SetNodePoolSizeRequest;
/**
- * Encodes the specified AutoUpgradeOptions message. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages.
- * @param message AutoUpgradeOptions message or plain object to encode
+ * Encodes the specified SetNodePoolSizeRequest message. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages.
+ * @param message SetNodePoolSizeRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IAutoUpgradeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.ISetNodePoolSizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified AutoUpgradeOptions message, length delimited. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages.
- * @param message AutoUpgradeOptions message or plain object to encode
+ * Encodes the specified SetNodePoolSizeRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages.
+ * @param message SetNodePoolSizeRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IAutoUpgradeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.ISetNodePoolSizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes an AutoUpgradeOptions message from the specified reader or buffer.
+ * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns AutoUpgradeOptions
+ * @returns SetNodePoolSizeRequest
* @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.AutoUpgradeOptions;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetNodePoolSizeRequest;
/**
- * Decodes an AutoUpgradeOptions message from the specified reader or buffer, length delimited.
+ * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns AutoUpgradeOptions
+ * @returns SetNodePoolSizeRequest
* @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.AutoUpgradeOptions;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetNodePoolSizeRequest;
/**
- * Verifies an AutoUpgradeOptions message.
+ * Verifies a SetNodePoolSizeRequest 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 AutoUpgradeOptions message from a plain object. Also converts values to their respective internal types.
+ * Creates a SetNodePoolSizeRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns AutoUpgradeOptions
+ * @returns SetNodePoolSizeRequest
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.AutoUpgradeOptions;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.SetNodePoolSizeRequest;
/**
- * Creates a plain object from an AutoUpgradeOptions message. Also converts values to other types if specified.
- * @param message AutoUpgradeOptions
+ * Creates a plain object from a SetNodePoolSizeRequest message. Also converts values to other types if specified.
+ * @param message SetNodePoolSizeRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.AutoUpgradeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.SetNodePoolSizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this AutoUpgradeOptions to JSON.
+ * Converts this SetNodePoolSizeRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a MaintenancePolicy. */
- interface IMaintenancePolicy {
+ /** Properties of a RollbackNodePoolUpgradeRequest. */
+ interface IRollbackNodePoolUpgradeRequest {
- /** MaintenancePolicy window */
- window?: (google.container.v1.IMaintenanceWindow|null);
+ /** RollbackNodePoolUpgradeRequest projectId */
+ projectId?: (string|null);
- /** MaintenancePolicy resourceVersion */
- resourceVersion?: (string|null);
+ /** RollbackNodePoolUpgradeRequest zone */
+ zone?: (string|null);
+
+ /** RollbackNodePoolUpgradeRequest clusterId */
+ clusterId?: (string|null);
+
+ /** RollbackNodePoolUpgradeRequest nodePoolId */
+ nodePoolId?: (string|null);
+
+ /** RollbackNodePoolUpgradeRequest name */
+ name?: (string|null);
}
- /** Represents a MaintenancePolicy. */
- class MaintenancePolicy implements IMaintenancePolicy {
+ /** Represents a RollbackNodePoolUpgradeRequest. */
+ class RollbackNodePoolUpgradeRequest implements IRollbackNodePoolUpgradeRequest {
/**
- * Constructs a new MaintenancePolicy.
+ * Constructs a new RollbackNodePoolUpgradeRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IMaintenancePolicy);
+ constructor(properties?: google.container.v1.IRollbackNodePoolUpgradeRequest);
- /** MaintenancePolicy window. */
- public window?: (google.container.v1.IMaintenanceWindow|null);
+ /** RollbackNodePoolUpgradeRequest projectId. */
+ public projectId: string;
- /** MaintenancePolicy resourceVersion. */
- public resourceVersion: string;
+ /** RollbackNodePoolUpgradeRequest zone. */
+ public zone: string;
+
+ /** RollbackNodePoolUpgradeRequest clusterId. */
+ public clusterId: string;
+
+ /** RollbackNodePoolUpgradeRequest nodePoolId. */
+ public nodePoolId: string;
+
+ /** RollbackNodePoolUpgradeRequest name. */
+ public name: string;
/**
- * Creates a new MaintenancePolicy instance using the specified properties.
+ * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns MaintenancePolicy instance
+ * @returns RollbackNodePoolUpgradeRequest instance
*/
- public static create(properties?: google.container.v1.IMaintenancePolicy): google.container.v1.MaintenancePolicy;
+ public static create(properties?: google.container.v1.IRollbackNodePoolUpgradeRequest): google.container.v1.RollbackNodePoolUpgradeRequest;
/**
- * Encodes the specified MaintenancePolicy message. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages.
- * @param message MaintenancePolicy message or plain object to encode
+ * Encodes the specified RollbackNodePoolUpgradeRequest message. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages.
+ * @param message RollbackNodePoolUpgradeRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IMaintenancePolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IRollbackNodePoolUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified MaintenancePolicy message, length delimited. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages.
- * @param message MaintenancePolicy message or plain object to encode
+ * Encodes the specified RollbackNodePoolUpgradeRequest message, length delimited. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages.
+ * @param message RollbackNodePoolUpgradeRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IMaintenancePolicy, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IRollbackNodePoolUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a MaintenancePolicy message from the specified reader or buffer.
+ * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns MaintenancePolicy
+ * @returns RollbackNodePoolUpgradeRequest
* @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.MaintenancePolicy;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.RollbackNodePoolUpgradeRequest;
/**
- * Decodes a MaintenancePolicy message from the specified reader or buffer, length delimited.
+ * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns MaintenancePolicy
+ * @returns RollbackNodePoolUpgradeRequest
* @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.MaintenancePolicy;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.RollbackNodePoolUpgradeRequest;
/**
- * Verifies a MaintenancePolicy message.
+ * Verifies a RollbackNodePoolUpgradeRequest 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 MaintenancePolicy message from a plain object. Also converts values to their respective internal types.
+ * Creates a RollbackNodePoolUpgradeRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns MaintenancePolicy
+ * @returns RollbackNodePoolUpgradeRequest
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.MaintenancePolicy;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.RollbackNodePoolUpgradeRequest;
/**
- * Creates a plain object from a MaintenancePolicy message. Also converts values to other types if specified.
- * @param message MaintenancePolicy
+ * Creates a plain object from a RollbackNodePoolUpgradeRequest message. Also converts values to other types if specified.
+ * @param message RollbackNodePoolUpgradeRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.MaintenancePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.RollbackNodePoolUpgradeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this MaintenancePolicy to JSON.
+ * Converts this RollbackNodePoolUpgradeRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
- }
-
- /** Properties of a MaintenanceWindow. */
- interface IMaintenanceWindow {
-
- /** MaintenanceWindow dailyMaintenanceWindow */
- dailyMaintenanceWindow?: (google.container.v1.IDailyMaintenanceWindow|null);
+ }
- /** MaintenanceWindow recurringWindow */
- recurringWindow?: (google.container.v1.IRecurringTimeWindow|null);
+ /** Properties of a ListNodePoolsResponse. */
+ interface IListNodePoolsResponse {
- /** MaintenanceWindow maintenanceExclusions */
- maintenanceExclusions?: ({ [k: string]: google.container.v1.ITimeWindow }|null);
+ /** ListNodePoolsResponse nodePools */
+ nodePools?: (google.container.v1.INodePool[]|null);
}
- /** Represents a MaintenanceWindow. */
- class MaintenanceWindow implements IMaintenanceWindow {
+ /** Represents a ListNodePoolsResponse. */
+ class ListNodePoolsResponse implements IListNodePoolsResponse {
/**
- * Constructs a new MaintenanceWindow.
+ * Constructs a new ListNodePoolsResponse.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IMaintenanceWindow);
-
- /** MaintenanceWindow dailyMaintenanceWindow. */
- public dailyMaintenanceWindow?: (google.container.v1.IDailyMaintenanceWindow|null);
-
- /** MaintenanceWindow recurringWindow. */
- public recurringWindow?: (google.container.v1.IRecurringTimeWindow|null);
-
- /** MaintenanceWindow maintenanceExclusions. */
- public maintenanceExclusions: { [k: string]: google.container.v1.ITimeWindow };
+ constructor(properties?: google.container.v1.IListNodePoolsResponse);
- /** MaintenanceWindow policy. */
- public policy?: ("dailyMaintenanceWindow"|"recurringWindow");
+ /** ListNodePoolsResponse nodePools. */
+ public nodePools: google.container.v1.INodePool[];
/**
- * Creates a new MaintenanceWindow instance using the specified properties.
+ * Creates a new ListNodePoolsResponse instance using the specified properties.
* @param [properties] Properties to set
- * @returns MaintenanceWindow instance
+ * @returns ListNodePoolsResponse instance
*/
- public static create(properties?: google.container.v1.IMaintenanceWindow): google.container.v1.MaintenanceWindow;
+ public static create(properties?: google.container.v1.IListNodePoolsResponse): google.container.v1.ListNodePoolsResponse;
/**
- * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages.
- * @param message MaintenanceWindow message or plain object to encode
+ * Encodes the specified ListNodePoolsResponse message. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages.
+ * @param message ListNodePoolsResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IListNodePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages.
- * @param message MaintenanceWindow message or plain object to encode
+ * Encodes the specified ListNodePoolsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages.
+ * @param message ListNodePoolsResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IListNodePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a MaintenanceWindow message from the specified reader or buffer.
+ * Decodes a ListNodePoolsResponse message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns MaintenanceWindow
+ * @returns ListNodePoolsResponse
* @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.MaintenanceWindow;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ListNodePoolsResponse;
/**
- * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited.
+ * Decodes a ListNodePoolsResponse message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns MaintenanceWindow
+ * @returns ListNodePoolsResponse
* @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.MaintenanceWindow;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ListNodePoolsResponse;
/**
- * Verifies a MaintenanceWindow message.
+ * Verifies a ListNodePoolsResponse 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 MaintenanceWindow message from a plain object. Also converts values to their respective internal types.
+ * Creates a ListNodePoolsResponse message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns MaintenanceWindow
+ * @returns ListNodePoolsResponse
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.MaintenanceWindow;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.ListNodePoolsResponse;
/**
- * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified.
- * @param message MaintenanceWindow
+ * Creates a plain object from a ListNodePoolsResponse message. Also converts values to other types if specified.
+ * @param message ListNodePoolsResponse
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.MaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.ListNodePoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this MaintenanceWindow to JSON.
+ * Converts this ListNodePoolsResponse to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a TimeWindow. */
- interface ITimeWindow {
+ /** Properties of a ClusterAutoscaling. */
+ interface IClusterAutoscaling {
- /** TimeWindow startTime */
- startTime?: (google.protobuf.ITimestamp|null);
+ /** ClusterAutoscaling enableNodeAutoprovisioning */
+ enableNodeAutoprovisioning?: (boolean|null);
- /** TimeWindow endTime */
- endTime?: (google.protobuf.ITimestamp|null);
+ /** ClusterAutoscaling resourceLimits */
+ resourceLimits?: (google.container.v1.IResourceLimit[]|null);
+
+ /** ClusterAutoscaling autoprovisioningNodePoolDefaults */
+ autoprovisioningNodePoolDefaults?: (google.container.v1.IAutoprovisioningNodePoolDefaults|null);
+
+ /** ClusterAutoscaling autoprovisioningLocations */
+ autoprovisioningLocations?: (string[]|null);
}
- /** Represents a TimeWindow. */
- class TimeWindow implements ITimeWindow {
+ /** Represents a ClusterAutoscaling. */
+ class ClusterAutoscaling implements IClusterAutoscaling {
/**
- * Constructs a new TimeWindow.
+ * Constructs a new ClusterAutoscaling.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.ITimeWindow);
+ constructor(properties?: google.container.v1.IClusterAutoscaling);
- /** TimeWindow startTime. */
- public startTime?: (google.protobuf.ITimestamp|null);
+ /** ClusterAutoscaling enableNodeAutoprovisioning. */
+ public enableNodeAutoprovisioning: boolean;
- /** TimeWindow endTime. */
- public endTime?: (google.protobuf.ITimestamp|null);
+ /** ClusterAutoscaling resourceLimits. */
+ public resourceLimits: google.container.v1.IResourceLimit[];
+
+ /** ClusterAutoscaling autoprovisioningNodePoolDefaults. */
+ public autoprovisioningNodePoolDefaults?: (google.container.v1.IAutoprovisioningNodePoolDefaults|null);
+
+ /** ClusterAutoscaling autoprovisioningLocations. */
+ public autoprovisioningLocations: string[];
/**
- * Creates a new TimeWindow instance using the specified properties.
+ * Creates a new ClusterAutoscaling instance using the specified properties.
* @param [properties] Properties to set
- * @returns TimeWindow instance
+ * @returns ClusterAutoscaling instance
*/
- public static create(properties?: google.container.v1.ITimeWindow): google.container.v1.TimeWindow;
+ public static create(properties?: google.container.v1.IClusterAutoscaling): google.container.v1.ClusterAutoscaling;
/**
- * Encodes the specified TimeWindow message. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages.
- * @param message TimeWindow message or plain object to encode
+ * Encodes the specified ClusterAutoscaling message. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages.
+ * @param message ClusterAutoscaling message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.ITimeWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IClusterAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified TimeWindow message, length delimited. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages.
- * @param message TimeWindow message or plain object to encode
+ * Encodes the specified ClusterAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages.
+ * @param message ClusterAutoscaling message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.ITimeWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IClusterAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a TimeWindow message from the specified reader or buffer.
+ * Decodes a ClusterAutoscaling message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns TimeWindow
+ * @returns ClusterAutoscaling
* @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.TimeWindow;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ClusterAutoscaling;
/**
- * Decodes a TimeWindow message from the specified reader or buffer, length delimited.
+ * Decodes a ClusterAutoscaling message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns TimeWindow
+ * @returns ClusterAutoscaling
* @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.TimeWindow;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ClusterAutoscaling;
/**
- * Verifies a TimeWindow message.
+ * Verifies a ClusterAutoscaling 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 TimeWindow message from a plain object. Also converts values to their respective internal types.
+ * Creates a ClusterAutoscaling message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns TimeWindow
+ * @returns ClusterAutoscaling
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.TimeWindow;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.ClusterAutoscaling;
/**
- * Creates a plain object from a TimeWindow message. Also converts values to other types if specified.
- * @param message TimeWindow
+ * Creates a plain object from a ClusterAutoscaling message. Also converts values to other types if specified.
+ * @param message ClusterAutoscaling
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.TimeWindow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.ClusterAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this TimeWindow to JSON.
+ * Converts this ClusterAutoscaling to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a RecurringTimeWindow. */
- interface IRecurringTimeWindow {
+ /** Properties of an AutoprovisioningNodePoolDefaults. */
+ interface IAutoprovisioningNodePoolDefaults {
- /** RecurringTimeWindow window */
- window?: (google.container.v1.ITimeWindow|null);
+ /** AutoprovisioningNodePoolDefaults oauthScopes */
+ oauthScopes?: (string[]|null);
- /** RecurringTimeWindow recurrence */
- recurrence?: (string|null);
+ /** AutoprovisioningNodePoolDefaults serviceAccount */
+ serviceAccount?: (string|null);
+
+ /** AutoprovisioningNodePoolDefaults upgradeSettings */
+ upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null);
+
+ /** AutoprovisioningNodePoolDefaults management */
+ management?: (google.container.v1.INodeManagement|null);
+
+ /** AutoprovisioningNodePoolDefaults minCpuPlatform */
+ minCpuPlatform?: (string|null);
+
+ /** AutoprovisioningNodePoolDefaults diskSizeGb */
+ diskSizeGb?: (number|null);
+
+ /** AutoprovisioningNodePoolDefaults diskType */
+ diskType?: (string|null);
+
+ /** AutoprovisioningNodePoolDefaults shieldedInstanceConfig */
+ shieldedInstanceConfig?: (google.container.v1.IShieldedInstanceConfig|null);
+
+ /** AutoprovisioningNodePoolDefaults bootDiskKmsKey */
+ bootDiskKmsKey?: (string|null);
}
- /** Represents a RecurringTimeWindow. */
- class RecurringTimeWindow implements IRecurringTimeWindow {
+ /** Represents an AutoprovisioningNodePoolDefaults. */
+ class AutoprovisioningNodePoolDefaults implements IAutoprovisioningNodePoolDefaults {
/**
- * Constructs a new RecurringTimeWindow.
+ * Constructs a new AutoprovisioningNodePoolDefaults.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IRecurringTimeWindow);
+ constructor(properties?: google.container.v1.IAutoprovisioningNodePoolDefaults);
- /** RecurringTimeWindow window. */
- public window?: (google.container.v1.ITimeWindow|null);
+ /** AutoprovisioningNodePoolDefaults oauthScopes. */
+ public oauthScopes: string[];
- /** RecurringTimeWindow recurrence. */
- public recurrence: string;
+ /** AutoprovisioningNodePoolDefaults serviceAccount. */
+ public serviceAccount: string;
+
+ /** AutoprovisioningNodePoolDefaults upgradeSettings. */
+ public upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null);
+
+ /** AutoprovisioningNodePoolDefaults management. */
+ public management?: (google.container.v1.INodeManagement|null);
+
+ /** AutoprovisioningNodePoolDefaults minCpuPlatform. */
+ public minCpuPlatform: string;
+
+ /** AutoprovisioningNodePoolDefaults diskSizeGb. */
+ public diskSizeGb: number;
+
+ /** AutoprovisioningNodePoolDefaults diskType. */
+ public diskType: string;
+
+ /** AutoprovisioningNodePoolDefaults shieldedInstanceConfig. */
+ public shieldedInstanceConfig?: (google.container.v1.IShieldedInstanceConfig|null);
+
+ /** AutoprovisioningNodePoolDefaults bootDiskKmsKey. */
+ public bootDiskKmsKey: string;
/**
- * Creates a new RecurringTimeWindow instance using the specified properties.
+ * Creates a new AutoprovisioningNodePoolDefaults instance using the specified properties.
* @param [properties] Properties to set
- * @returns RecurringTimeWindow instance
+ * @returns AutoprovisioningNodePoolDefaults instance
*/
- public static create(properties?: google.container.v1.IRecurringTimeWindow): google.container.v1.RecurringTimeWindow;
+ public static create(properties?: google.container.v1.IAutoprovisioningNodePoolDefaults): google.container.v1.AutoprovisioningNodePoolDefaults;
/**
- * Encodes the specified RecurringTimeWindow message. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages.
- * @param message RecurringTimeWindow message or plain object to encode
+ * Encodes the specified AutoprovisioningNodePoolDefaults message. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages.
+ * @param message AutoprovisioningNodePoolDefaults message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IRecurringTimeWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IAutoprovisioningNodePoolDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified RecurringTimeWindow message, length delimited. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages.
- * @param message RecurringTimeWindow message or plain object to encode
+ * Encodes the specified AutoprovisioningNodePoolDefaults message, length delimited. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages.
+ * @param message AutoprovisioningNodePoolDefaults message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IRecurringTimeWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IAutoprovisioningNodePoolDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a RecurringTimeWindow message from the specified reader or buffer.
+ * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns RecurringTimeWindow
+ * @returns AutoprovisioningNodePoolDefaults
* @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.RecurringTimeWindow;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.AutoprovisioningNodePoolDefaults;
/**
- * Decodes a RecurringTimeWindow message from the specified reader or buffer, length delimited.
+ * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns RecurringTimeWindow
+ * @returns AutoprovisioningNodePoolDefaults
* @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.RecurringTimeWindow;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.AutoprovisioningNodePoolDefaults;
/**
- * Verifies a RecurringTimeWindow message.
+ * Verifies an AutoprovisioningNodePoolDefaults 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 RecurringTimeWindow message from a plain object. Also converts values to their respective internal types.
+ * Creates an AutoprovisioningNodePoolDefaults message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns RecurringTimeWindow
+ * @returns AutoprovisioningNodePoolDefaults
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.RecurringTimeWindow;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.AutoprovisioningNodePoolDefaults;
/**
- * Creates a plain object from a RecurringTimeWindow message. Also converts values to other types if specified.
- * @param message RecurringTimeWindow
+ * Creates a plain object from an AutoprovisioningNodePoolDefaults message. Also converts values to other types if specified.
+ * @param message AutoprovisioningNodePoolDefaults
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.RecurringTimeWindow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.AutoprovisioningNodePoolDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this RecurringTimeWindow to JSON.
+ * Converts this AutoprovisioningNodePoolDefaults to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a DailyMaintenanceWindow. */
- interface IDailyMaintenanceWindow {
+ /** Properties of a ResourceLimit. */
+ interface IResourceLimit {
- /** DailyMaintenanceWindow startTime */
- startTime?: (string|null);
+ /** ResourceLimit resourceType */
+ resourceType?: (string|null);
- /** DailyMaintenanceWindow duration */
- duration?: (string|null);
+ /** ResourceLimit minimum */
+ minimum?: (number|Long|string|null);
+
+ /** ResourceLimit maximum */
+ maximum?: (number|Long|string|null);
}
- /** Represents a DailyMaintenanceWindow. */
- class DailyMaintenanceWindow implements IDailyMaintenanceWindow {
+ /** Represents a ResourceLimit. */
+ class ResourceLimit implements IResourceLimit {
/**
- * Constructs a new DailyMaintenanceWindow.
+ * Constructs a new ResourceLimit.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IDailyMaintenanceWindow);
+ constructor(properties?: google.container.v1.IResourceLimit);
- /** DailyMaintenanceWindow startTime. */
- public startTime: string;
+ /** ResourceLimit resourceType. */
+ public resourceType: string;
- /** DailyMaintenanceWindow duration. */
- public duration: string;
+ /** ResourceLimit minimum. */
+ public minimum: (number|Long|string);
+
+ /** ResourceLimit maximum. */
+ public maximum: (number|Long|string);
/**
- * Creates a new DailyMaintenanceWindow instance using the specified properties.
+ * Creates a new ResourceLimit instance using the specified properties.
* @param [properties] Properties to set
- * @returns DailyMaintenanceWindow instance
+ * @returns ResourceLimit instance
*/
- public static create(properties?: google.container.v1.IDailyMaintenanceWindow): google.container.v1.DailyMaintenanceWindow;
+ public static create(properties?: google.container.v1.IResourceLimit): google.container.v1.ResourceLimit;
/**
- * Encodes the specified DailyMaintenanceWindow message. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages.
- * @param message DailyMaintenanceWindow message or plain object to encode
+ * Encodes the specified ResourceLimit message. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages.
+ * @param message ResourceLimit message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IDailyMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IResourceLimit, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified DailyMaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages.
- * @param message DailyMaintenanceWindow message or plain object to encode
+ * Encodes the specified ResourceLimit message, length delimited. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages.
+ * @param message ResourceLimit message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IDailyMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IResourceLimit, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a DailyMaintenanceWindow message from the specified reader or buffer.
+ * Decodes a ResourceLimit message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns DailyMaintenanceWindow
+ * @returns ResourceLimit
* @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.DailyMaintenanceWindow;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ResourceLimit;
/**
- * Decodes a DailyMaintenanceWindow message from the specified reader or buffer, length delimited.
+ * Decodes a ResourceLimit message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns DailyMaintenanceWindow
+ * @returns ResourceLimit
* @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.DailyMaintenanceWindow;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ResourceLimit;
/**
- * Verifies a DailyMaintenanceWindow message.
+ * Verifies a ResourceLimit 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 DailyMaintenanceWindow message from a plain object. Also converts values to their respective internal types.
+ * Creates a ResourceLimit message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns DailyMaintenanceWindow
+ * @returns ResourceLimit
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.DailyMaintenanceWindow;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.ResourceLimit;
/**
- * Creates a plain object from a DailyMaintenanceWindow message. Also converts values to other types if specified.
- * @param message DailyMaintenanceWindow
+ * Creates a plain object from a ResourceLimit message. Also converts values to other types if specified.
+ * @param message ResourceLimit
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.DailyMaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.ResourceLimit, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this DailyMaintenanceWindow to JSON.
+ * Converts this ResourceLimit to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a SetNodePoolManagementRequest. */
- interface ISetNodePoolManagementRequest {
-
- /** SetNodePoolManagementRequest projectId */
- projectId?: (string|null);
-
- /** SetNodePoolManagementRequest zone */
- zone?: (string|null);
+ /** Properties of a NodePoolAutoscaling. */
+ interface INodePoolAutoscaling {
- /** SetNodePoolManagementRequest clusterId */
- clusterId?: (string|null);
+ /** NodePoolAutoscaling enabled */
+ enabled?: (boolean|null);
- /** SetNodePoolManagementRequest nodePoolId */
- nodePoolId?: (string|null);
+ /** NodePoolAutoscaling minNodeCount */
+ minNodeCount?: (number|null);
- /** SetNodePoolManagementRequest management */
- management?: (google.container.v1.INodeManagement|null);
+ /** NodePoolAutoscaling maxNodeCount */
+ maxNodeCount?: (number|null);
- /** SetNodePoolManagementRequest name */
- name?: (string|null);
+ /** NodePoolAutoscaling autoprovisioned */
+ autoprovisioned?: (boolean|null);
}
- /** Represents a SetNodePoolManagementRequest. */
- class SetNodePoolManagementRequest implements ISetNodePoolManagementRequest {
+ /** Represents a NodePoolAutoscaling. */
+ class NodePoolAutoscaling implements INodePoolAutoscaling {
/**
- * Constructs a new SetNodePoolManagementRequest.
+ * Constructs a new NodePoolAutoscaling.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.ISetNodePoolManagementRequest);
-
- /** SetNodePoolManagementRequest projectId. */
- public projectId: string;
-
- /** SetNodePoolManagementRequest zone. */
- public zone: string;
+ constructor(properties?: google.container.v1.INodePoolAutoscaling);
- /** SetNodePoolManagementRequest clusterId. */
- public clusterId: string;
+ /** NodePoolAutoscaling enabled. */
+ public enabled: boolean;
- /** SetNodePoolManagementRequest nodePoolId. */
- public nodePoolId: string;
+ /** NodePoolAutoscaling minNodeCount. */
+ public minNodeCount: number;
- /** SetNodePoolManagementRequest management. */
- public management?: (google.container.v1.INodeManagement|null);
+ /** NodePoolAutoscaling maxNodeCount. */
+ public maxNodeCount: number;
- /** SetNodePoolManagementRequest name. */
- public name: string;
+ /** NodePoolAutoscaling autoprovisioned. */
+ public autoprovisioned: boolean;
/**
- * Creates a new SetNodePoolManagementRequest instance using the specified properties.
+ * Creates a new NodePoolAutoscaling instance using the specified properties.
* @param [properties] Properties to set
- * @returns SetNodePoolManagementRequest instance
+ * @returns NodePoolAutoscaling instance
*/
- public static create(properties?: google.container.v1.ISetNodePoolManagementRequest): google.container.v1.SetNodePoolManagementRequest;
+ public static create(properties?: google.container.v1.INodePoolAutoscaling): google.container.v1.NodePoolAutoscaling;
/**
- * Encodes the specified SetNodePoolManagementRequest message. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages.
- * @param message SetNodePoolManagementRequest message or plain object to encode
+ * Encodes the specified NodePoolAutoscaling message. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages.
+ * @param message NodePoolAutoscaling message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.ISetNodePoolManagementRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.INodePoolAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified SetNodePoolManagementRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages.
- * @param message SetNodePoolManagementRequest message or plain object to encode
+ * Encodes the specified NodePoolAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages.
+ * @param message NodePoolAutoscaling message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.ISetNodePoolManagementRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.INodePoolAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer.
+ * Decodes a NodePoolAutoscaling message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns SetNodePoolManagementRequest
+ * @returns NodePoolAutoscaling
* @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.SetNodePoolManagementRequest;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.NodePoolAutoscaling;
/**
- * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer, length delimited.
+ * Decodes a NodePoolAutoscaling message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns SetNodePoolManagementRequest
+ * @returns NodePoolAutoscaling
* @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.SetNodePoolManagementRequest;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.NodePoolAutoscaling;
/**
- * Verifies a SetNodePoolManagementRequest message.
+ * Verifies a NodePoolAutoscaling 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 SetNodePoolManagementRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a NodePoolAutoscaling message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns SetNodePoolManagementRequest
+ * @returns NodePoolAutoscaling
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.SetNodePoolManagementRequest;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.NodePoolAutoscaling;
/**
- * Creates a plain object from a SetNodePoolManagementRequest message. Also converts values to other types if specified.
- * @param message SetNodePoolManagementRequest
+ * Creates a plain object from a NodePoolAutoscaling message. Also converts values to other types if specified.
+ * @param message NodePoolAutoscaling
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.SetNodePoolManagementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.NodePoolAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this SetNodePoolManagementRequest to JSON.
+ * Converts this NodePoolAutoscaling to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a SetNodePoolSizeRequest. */
- interface ISetNodePoolSizeRequest {
+ /** Properties of a SetLabelsRequest. */
+ interface ISetLabelsRequest {
- /** SetNodePoolSizeRequest projectId */
+ /** SetLabelsRequest projectId */
projectId?: (string|null);
- /** SetNodePoolSizeRequest zone */
+ /** SetLabelsRequest zone */
zone?: (string|null);
- /** SetNodePoolSizeRequest clusterId */
+ /** SetLabelsRequest clusterId */
clusterId?: (string|null);
- /** SetNodePoolSizeRequest nodePoolId */
- nodePoolId?: (string|null);
+ /** SetLabelsRequest resourceLabels */
+ resourceLabels?: ({ [k: string]: string }|null);
- /** SetNodePoolSizeRequest nodeCount */
- nodeCount?: (number|null);
+ /** SetLabelsRequest labelFingerprint */
+ labelFingerprint?: (string|null);
- /** SetNodePoolSizeRequest name */
+ /** SetLabelsRequest name */
name?: (string|null);
}
- /** Represents a SetNodePoolSizeRequest. */
- class SetNodePoolSizeRequest implements ISetNodePoolSizeRequest {
+ /** Represents a SetLabelsRequest. */
+ class SetLabelsRequest implements ISetLabelsRequest {
/**
- * Constructs a new SetNodePoolSizeRequest.
+ * Constructs a new SetLabelsRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.ISetNodePoolSizeRequest);
+ constructor(properties?: google.container.v1.ISetLabelsRequest);
- /** SetNodePoolSizeRequest projectId. */
+ /** SetLabelsRequest projectId. */
public projectId: string;
- /** SetNodePoolSizeRequest zone. */
+ /** SetLabelsRequest zone. */
public zone: string;
- /** SetNodePoolSizeRequest clusterId. */
+ /** SetLabelsRequest clusterId. */
public clusterId: string;
- /** SetNodePoolSizeRequest nodePoolId. */
- public nodePoolId: string;
+ /** SetLabelsRequest resourceLabels. */
+ public resourceLabels: { [k: string]: string };
- /** SetNodePoolSizeRequest nodeCount. */
- public nodeCount: number;
+ /** SetLabelsRequest labelFingerprint. */
+ public labelFingerprint: string;
- /** SetNodePoolSizeRequest name. */
+ /** SetLabelsRequest name. */
public name: string;
/**
- * Creates a new SetNodePoolSizeRequest instance using the specified properties.
+ * Creates a new SetLabelsRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns SetNodePoolSizeRequest instance
+ * @returns SetLabelsRequest instance
*/
- public static create(properties?: google.container.v1.ISetNodePoolSizeRequest): google.container.v1.SetNodePoolSizeRequest;
+ public static create(properties?: google.container.v1.ISetLabelsRequest): google.container.v1.SetLabelsRequest;
/**
- * Encodes the specified SetNodePoolSizeRequest message. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages.
- * @param message SetNodePoolSizeRequest message or plain object to encode
+ * Encodes the specified SetLabelsRequest message. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages.
+ * @param message SetLabelsRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.ISetNodePoolSizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.ISetLabelsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified SetNodePoolSizeRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages.
- * @param message SetNodePoolSizeRequest message or plain object to encode
+ * Encodes the specified SetLabelsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages.
+ * @param message SetLabelsRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.ISetNodePoolSizeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.ISetLabelsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer.
+ * Decodes a SetLabelsRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns SetNodePoolSizeRequest
+ * @returns SetLabelsRequest
* @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.SetNodePoolSizeRequest;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetLabelsRequest;
/**
- * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer, length delimited.
+ * Decodes a SetLabelsRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns SetNodePoolSizeRequest
+ * @returns SetLabelsRequest
* @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.SetNodePoolSizeRequest;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetLabelsRequest;
/**
- * Verifies a SetNodePoolSizeRequest message.
+ * Verifies a SetLabelsRequest 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 SetNodePoolSizeRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a SetLabelsRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns SetNodePoolSizeRequest
+ * @returns SetLabelsRequest
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.SetNodePoolSizeRequest;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.SetLabelsRequest;
/**
- * Creates a plain object from a SetNodePoolSizeRequest message. Also converts values to other types if specified.
- * @param message SetNodePoolSizeRequest
+ * Creates a plain object from a SetLabelsRequest message. Also converts values to other types if specified.
+ * @param message SetLabelsRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.SetNodePoolSizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.SetLabelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this SetNodePoolSizeRequest to JSON.
+ * Converts this SetLabelsRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a RollbackNodePoolUpgradeRequest. */
- interface IRollbackNodePoolUpgradeRequest {
+ /** Properties of a SetLegacyAbacRequest. */
+ interface ISetLegacyAbacRequest {
- /** RollbackNodePoolUpgradeRequest projectId */
+ /** SetLegacyAbacRequest projectId */
projectId?: (string|null);
- /** RollbackNodePoolUpgradeRequest zone */
+ /** SetLegacyAbacRequest zone */
zone?: (string|null);
- /** RollbackNodePoolUpgradeRequest clusterId */
+ /** SetLegacyAbacRequest clusterId */
clusterId?: (string|null);
- /** RollbackNodePoolUpgradeRequest nodePoolId */
- nodePoolId?: (string|null);
+ /** SetLegacyAbacRequest enabled */
+ enabled?: (boolean|null);
- /** RollbackNodePoolUpgradeRequest name */
+ /** SetLegacyAbacRequest name */
name?: (string|null);
}
- /** Represents a RollbackNodePoolUpgradeRequest. */
- class RollbackNodePoolUpgradeRequest implements IRollbackNodePoolUpgradeRequest {
+ /** Represents a SetLegacyAbacRequest. */
+ class SetLegacyAbacRequest implements ISetLegacyAbacRequest {
/**
- * Constructs a new RollbackNodePoolUpgradeRequest.
+ * Constructs a new SetLegacyAbacRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IRollbackNodePoolUpgradeRequest);
+ constructor(properties?: google.container.v1.ISetLegacyAbacRequest);
- /** RollbackNodePoolUpgradeRequest projectId. */
+ /** SetLegacyAbacRequest projectId. */
public projectId: string;
- /** RollbackNodePoolUpgradeRequest zone. */
+ /** SetLegacyAbacRequest zone. */
public zone: string;
- /** RollbackNodePoolUpgradeRequest clusterId. */
+ /** SetLegacyAbacRequest clusterId. */
public clusterId: string;
- /** RollbackNodePoolUpgradeRequest nodePoolId. */
- public nodePoolId: string;
+ /** SetLegacyAbacRequest enabled. */
+ public enabled: boolean;
- /** RollbackNodePoolUpgradeRequest name. */
+ /** SetLegacyAbacRequest name. */
public name: string;
/**
- * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties.
+ * Creates a new SetLegacyAbacRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns RollbackNodePoolUpgradeRequest instance
+ * @returns SetLegacyAbacRequest instance
*/
- public static create(properties?: google.container.v1.IRollbackNodePoolUpgradeRequest): google.container.v1.RollbackNodePoolUpgradeRequest;
+ public static create(properties?: google.container.v1.ISetLegacyAbacRequest): google.container.v1.SetLegacyAbacRequest;
/**
- * Encodes the specified RollbackNodePoolUpgradeRequest message. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages.
- * @param message RollbackNodePoolUpgradeRequest message or plain object to encode
+ * Encodes the specified SetLegacyAbacRequest message. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages.
+ * @param message SetLegacyAbacRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IRollbackNodePoolUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.ISetLegacyAbacRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified RollbackNodePoolUpgradeRequest message, length delimited. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages.
- * @param message RollbackNodePoolUpgradeRequest message or plain object to encode
+ * Encodes the specified SetLegacyAbacRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages.
+ * @param message SetLegacyAbacRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IRollbackNodePoolUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.ISetLegacyAbacRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer.
+ * Decodes a SetLegacyAbacRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns RollbackNodePoolUpgradeRequest
+ * @returns SetLegacyAbacRequest
* @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.RollbackNodePoolUpgradeRequest;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetLegacyAbacRequest;
/**
- * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer, length delimited.
+ * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns RollbackNodePoolUpgradeRequest
+ * @returns SetLegacyAbacRequest
* @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.RollbackNodePoolUpgradeRequest;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetLegacyAbacRequest;
/**
- * Verifies a RollbackNodePoolUpgradeRequest message.
+ * Verifies a SetLegacyAbacRequest 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 RollbackNodePoolUpgradeRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a SetLegacyAbacRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns RollbackNodePoolUpgradeRequest
+ * @returns SetLegacyAbacRequest
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.RollbackNodePoolUpgradeRequest;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.SetLegacyAbacRequest;
/**
- * Creates a plain object from a RollbackNodePoolUpgradeRequest message. Also converts values to other types if specified.
- * @param message RollbackNodePoolUpgradeRequest
+ * Creates a plain object from a SetLegacyAbacRequest message. Also converts values to other types if specified.
+ * @param message SetLegacyAbacRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.RollbackNodePoolUpgradeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.SetLegacyAbacRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this RollbackNodePoolUpgradeRequest to JSON.
+ * Converts this SetLegacyAbacRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a ListNodePoolsResponse. */
- interface IListNodePoolsResponse {
+ /** Properties of a StartIPRotationRequest. */
+ interface IStartIPRotationRequest {
- /** ListNodePoolsResponse nodePools */
- nodePools?: (google.container.v1.INodePool[]|null);
+ /** StartIPRotationRequest projectId */
+ projectId?: (string|null);
+
+ /** StartIPRotationRequest zone */
+ zone?: (string|null);
+
+ /** StartIPRotationRequest clusterId */
+ clusterId?: (string|null);
+
+ /** StartIPRotationRequest name */
+ name?: (string|null);
+
+ /** StartIPRotationRequest rotateCredentials */
+ rotateCredentials?: (boolean|null);
}
- /** Represents a ListNodePoolsResponse. */
- class ListNodePoolsResponse implements IListNodePoolsResponse {
+ /** Represents a StartIPRotationRequest. */
+ class StartIPRotationRequest implements IStartIPRotationRequest {
/**
- * Constructs a new ListNodePoolsResponse.
+ * Constructs a new StartIPRotationRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IListNodePoolsResponse);
+ constructor(properties?: google.container.v1.IStartIPRotationRequest);
- /** ListNodePoolsResponse nodePools. */
- public nodePools: google.container.v1.INodePool[];
+ /** StartIPRotationRequest projectId. */
+ public projectId: string;
+
+ /** StartIPRotationRequest zone. */
+ public zone: string;
+
+ /** StartIPRotationRequest clusterId. */
+ public clusterId: string;
+
+ /** StartIPRotationRequest name. */
+ public name: string;
+
+ /** StartIPRotationRequest rotateCredentials. */
+ public rotateCredentials: boolean;
/**
- * Creates a new ListNodePoolsResponse instance using the specified properties.
+ * Creates a new StartIPRotationRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns ListNodePoolsResponse instance
+ * @returns StartIPRotationRequest instance
*/
- public static create(properties?: google.container.v1.IListNodePoolsResponse): google.container.v1.ListNodePoolsResponse;
+ public static create(properties?: google.container.v1.IStartIPRotationRequest): google.container.v1.StartIPRotationRequest;
/**
- * Encodes the specified ListNodePoolsResponse message. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages.
- * @param message ListNodePoolsResponse message or plain object to encode
+ * Encodes the specified StartIPRotationRequest message. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages.
+ * @param message StartIPRotationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IListNodePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IStartIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified ListNodePoolsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages.
- * @param message ListNodePoolsResponse message or plain object to encode
+ * Encodes the specified StartIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages.
+ * @param message StartIPRotationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IListNodePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IStartIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a ListNodePoolsResponse message from the specified reader or buffer.
+ * Decodes a StartIPRotationRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns ListNodePoolsResponse
+ * @returns StartIPRotationRequest
* @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.ListNodePoolsResponse;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.StartIPRotationRequest;
/**
- * Decodes a ListNodePoolsResponse message from the specified reader or buffer, length delimited.
+ * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns ListNodePoolsResponse
+ * @returns StartIPRotationRequest
* @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.ListNodePoolsResponse;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.StartIPRotationRequest;
/**
- * Verifies a ListNodePoolsResponse message.
+ * Verifies a StartIPRotationRequest 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 ListNodePoolsResponse message from a plain object. Also converts values to their respective internal types.
+ * Creates a StartIPRotationRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ListNodePoolsResponse
+ * @returns StartIPRotationRequest
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.ListNodePoolsResponse;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.StartIPRotationRequest;
/**
- * Creates a plain object from a ListNodePoolsResponse message. Also converts values to other types if specified.
- * @param message ListNodePoolsResponse
+ * Creates a plain object from a StartIPRotationRequest message. Also converts values to other types if specified.
+ * @param message StartIPRotationRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.ListNodePoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.StartIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ListNodePoolsResponse to JSON.
+ * Converts this StartIPRotationRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a ClusterAutoscaling. */
- interface IClusterAutoscaling {
+ /** Properties of a CompleteIPRotationRequest. */
+ interface ICompleteIPRotationRequest {
- /** ClusterAutoscaling enableNodeAutoprovisioning */
- enableNodeAutoprovisioning?: (boolean|null);
+ /** CompleteIPRotationRequest projectId */
+ projectId?: (string|null);
- /** ClusterAutoscaling resourceLimits */
- resourceLimits?: (google.container.v1.IResourceLimit[]|null);
+ /** CompleteIPRotationRequest zone */
+ zone?: (string|null);
- /** ClusterAutoscaling autoprovisioningNodePoolDefaults */
- autoprovisioningNodePoolDefaults?: (google.container.v1.IAutoprovisioningNodePoolDefaults|null);
+ /** CompleteIPRotationRequest clusterId */
+ clusterId?: (string|null);
- /** ClusterAutoscaling autoprovisioningLocations */
- autoprovisioningLocations?: (string[]|null);
+ /** CompleteIPRotationRequest name */
+ name?: (string|null);
}
- /** Represents a ClusterAutoscaling. */
- class ClusterAutoscaling implements IClusterAutoscaling {
+ /** Represents a CompleteIPRotationRequest. */
+ class CompleteIPRotationRequest implements ICompleteIPRotationRequest {
/**
- * Constructs a new ClusterAutoscaling.
+ * Constructs a new CompleteIPRotationRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IClusterAutoscaling);
+ constructor(properties?: google.container.v1.ICompleteIPRotationRequest);
- /** ClusterAutoscaling enableNodeAutoprovisioning. */
- public enableNodeAutoprovisioning: boolean;
+ /** CompleteIPRotationRequest projectId. */
+ public projectId: string;
- /** ClusterAutoscaling resourceLimits. */
- public resourceLimits: google.container.v1.IResourceLimit[];
+ /** CompleteIPRotationRequest zone. */
+ public zone: string;
- /** ClusterAutoscaling autoprovisioningNodePoolDefaults. */
- public autoprovisioningNodePoolDefaults?: (google.container.v1.IAutoprovisioningNodePoolDefaults|null);
+ /** CompleteIPRotationRequest clusterId. */
+ public clusterId: string;
- /** ClusterAutoscaling autoprovisioningLocations. */
- public autoprovisioningLocations: string[];
+ /** CompleteIPRotationRequest name. */
+ public name: string;
/**
- * Creates a new ClusterAutoscaling instance using the specified properties.
+ * Creates a new CompleteIPRotationRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns ClusterAutoscaling instance
+ * @returns CompleteIPRotationRequest instance
*/
- public static create(properties?: google.container.v1.IClusterAutoscaling): google.container.v1.ClusterAutoscaling;
+ public static create(properties?: google.container.v1.ICompleteIPRotationRequest): google.container.v1.CompleteIPRotationRequest;
/**
- * Encodes the specified ClusterAutoscaling message. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages.
- * @param message ClusterAutoscaling message or plain object to encode
+ * Encodes the specified CompleteIPRotationRequest message. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages.
+ * @param message CompleteIPRotationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IClusterAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.ICompleteIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified ClusterAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages.
- * @param message ClusterAutoscaling message or plain object to encode
+ * Encodes the specified CompleteIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages.
+ * @param message CompleteIPRotationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IClusterAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.ICompleteIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a ClusterAutoscaling message from the specified reader or buffer.
+ * Decodes a CompleteIPRotationRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns ClusterAutoscaling
+ * @returns CompleteIPRotationRequest
* @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.ClusterAutoscaling;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.CompleteIPRotationRequest;
/**
- * Decodes a ClusterAutoscaling message from the specified reader or buffer, length delimited.
+ * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns ClusterAutoscaling
+ * @returns CompleteIPRotationRequest
* @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.ClusterAutoscaling;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.CompleteIPRotationRequest;
/**
- * Verifies a ClusterAutoscaling message.
+ * Verifies a CompleteIPRotationRequest 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 ClusterAutoscaling message from a plain object. Also converts values to their respective internal types.
+ * Creates a CompleteIPRotationRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ClusterAutoscaling
+ * @returns CompleteIPRotationRequest
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.ClusterAutoscaling;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.CompleteIPRotationRequest;
/**
- * Creates a plain object from a ClusterAutoscaling message. Also converts values to other types if specified.
- * @param message ClusterAutoscaling
+ * Creates a plain object from a CompleteIPRotationRequest message. Also converts values to other types if specified.
+ * @param message CompleteIPRotationRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.ClusterAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.CompleteIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ClusterAutoscaling to JSON.
+ * Converts this CompleteIPRotationRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of an AutoprovisioningNodePoolDefaults. */
- interface IAutoprovisioningNodePoolDefaults {
+ /** Properties of an AcceleratorConfig. */
+ interface IAcceleratorConfig {
- /** AutoprovisioningNodePoolDefaults oauthScopes */
- oauthScopes?: (string[]|null);
+ /** AcceleratorConfig acceleratorCount */
+ acceleratorCount?: (number|Long|string|null);
- /** AutoprovisioningNodePoolDefaults serviceAccount */
- serviceAccount?: (string|null);
+ /** AcceleratorConfig acceleratorType */
+ acceleratorType?: (string|null);
}
- /** Represents an AutoprovisioningNodePoolDefaults. */
- class AutoprovisioningNodePoolDefaults implements IAutoprovisioningNodePoolDefaults {
+ /** Represents an AcceleratorConfig. */
+ class AcceleratorConfig implements IAcceleratorConfig {
/**
- * Constructs a new AutoprovisioningNodePoolDefaults.
+ * Constructs a new AcceleratorConfig.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IAutoprovisioningNodePoolDefaults);
+ constructor(properties?: google.container.v1.IAcceleratorConfig);
- /** AutoprovisioningNodePoolDefaults oauthScopes. */
- public oauthScopes: string[];
+ /** AcceleratorConfig acceleratorCount. */
+ public acceleratorCount: (number|Long|string);
- /** AutoprovisioningNodePoolDefaults serviceAccount. */
- public serviceAccount: string;
+ /** AcceleratorConfig acceleratorType. */
+ public acceleratorType: string;
/**
- * Creates a new AutoprovisioningNodePoolDefaults instance using the specified properties.
+ * Creates a new AcceleratorConfig instance using the specified properties.
* @param [properties] Properties to set
- * @returns AutoprovisioningNodePoolDefaults instance
+ * @returns AcceleratorConfig instance
*/
- public static create(properties?: google.container.v1.IAutoprovisioningNodePoolDefaults): google.container.v1.AutoprovisioningNodePoolDefaults;
+ public static create(properties?: google.container.v1.IAcceleratorConfig): google.container.v1.AcceleratorConfig;
/**
- * Encodes the specified AutoprovisioningNodePoolDefaults message. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages.
- * @param message AutoprovisioningNodePoolDefaults message or plain object to encode
+ * Encodes the specified AcceleratorConfig message. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages.
+ * @param message AcceleratorConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IAutoprovisioningNodePoolDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IAcceleratorConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified AutoprovisioningNodePoolDefaults message, length delimited. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages.
- * @param message AutoprovisioningNodePoolDefaults message or plain object to encode
+ * Encodes the specified AcceleratorConfig message, length delimited. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages.
+ * @param message AcceleratorConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IAutoprovisioningNodePoolDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IAcceleratorConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer.
+ * Decodes an AcceleratorConfig message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns AutoprovisioningNodePoolDefaults
+ * @returns AcceleratorConfig
* @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.AutoprovisioningNodePoolDefaults;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.AcceleratorConfig;
/**
- * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer, length delimited.
+ * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns AutoprovisioningNodePoolDefaults
+ * @returns AcceleratorConfig
* @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.AutoprovisioningNodePoolDefaults;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.AcceleratorConfig;
/**
- * Verifies an AutoprovisioningNodePoolDefaults message.
+ * Verifies an AcceleratorConfig 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 AutoprovisioningNodePoolDefaults message from a plain object. Also converts values to their respective internal types.
+ * Creates an AcceleratorConfig message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns AutoprovisioningNodePoolDefaults
+ * @returns AcceleratorConfig
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.AutoprovisioningNodePoolDefaults;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.AcceleratorConfig;
/**
- * Creates a plain object from an AutoprovisioningNodePoolDefaults message. Also converts values to other types if specified.
- * @param message AutoprovisioningNodePoolDefaults
+ * Creates a plain object from an AcceleratorConfig message. Also converts values to other types if specified.
+ * @param message AcceleratorConfig
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.AutoprovisioningNodePoolDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.AcceleratorConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this AutoprovisioningNodePoolDefaults to JSON.
+ * Converts this AcceleratorConfig to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a ResourceLimit. */
- interface IResourceLimit {
-
- /** ResourceLimit resourceType */
- resourceType?: (string|null);
-
- /** ResourceLimit minimum */
- minimum?: (number|Long|string|null);
+ /** Properties of a WorkloadMetadataConfig. */
+ interface IWorkloadMetadataConfig {
- /** ResourceLimit maximum */
- maximum?: (number|Long|string|null);
+ /** WorkloadMetadataConfig mode */
+ mode?: (google.container.v1.WorkloadMetadataConfig.Mode|keyof typeof google.container.v1.WorkloadMetadataConfig.Mode|null);
}
- /** Represents a ResourceLimit. */
- class ResourceLimit implements IResourceLimit {
+ /** Represents a WorkloadMetadataConfig. */
+ class WorkloadMetadataConfig implements IWorkloadMetadataConfig {
/**
- * Constructs a new ResourceLimit.
+ * Constructs a new WorkloadMetadataConfig.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IResourceLimit);
-
- /** ResourceLimit resourceType. */
- public resourceType: string;
-
- /** ResourceLimit minimum. */
- public minimum: (number|Long|string);
+ constructor(properties?: google.container.v1.IWorkloadMetadataConfig);
- /** ResourceLimit maximum. */
- public maximum: (number|Long|string);
+ /** WorkloadMetadataConfig mode. */
+ public mode: (google.container.v1.WorkloadMetadataConfig.Mode|keyof typeof google.container.v1.WorkloadMetadataConfig.Mode);
/**
- * Creates a new ResourceLimit instance using the specified properties.
+ * Creates a new WorkloadMetadataConfig instance using the specified properties.
* @param [properties] Properties to set
- * @returns ResourceLimit instance
+ * @returns WorkloadMetadataConfig instance
*/
- public static create(properties?: google.container.v1.IResourceLimit): google.container.v1.ResourceLimit;
+ public static create(properties?: google.container.v1.IWorkloadMetadataConfig): google.container.v1.WorkloadMetadataConfig;
/**
- * Encodes the specified ResourceLimit message. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages.
- * @param message ResourceLimit message or plain object to encode
+ * Encodes the specified WorkloadMetadataConfig message. Does not implicitly {@link google.container.v1.WorkloadMetadataConfig.verify|verify} messages.
+ * @param message WorkloadMetadataConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IResourceLimit, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IWorkloadMetadataConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified ResourceLimit message, length delimited. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages.
- * @param message ResourceLimit message or plain object to encode
+ * Encodes the specified WorkloadMetadataConfig message, length delimited. Does not implicitly {@link google.container.v1.WorkloadMetadataConfig.verify|verify} messages.
+ * @param message WorkloadMetadataConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IResourceLimit, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IWorkloadMetadataConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a ResourceLimit message from the specified reader or buffer.
+ * Decodes a WorkloadMetadataConfig message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns ResourceLimit
+ * @returns WorkloadMetadataConfig
* @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.ResourceLimit;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.WorkloadMetadataConfig;
/**
- * Decodes a ResourceLimit message from the specified reader or buffer, length delimited.
+ * Decodes a WorkloadMetadataConfig message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns ResourceLimit
+ * @returns WorkloadMetadataConfig
* @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.ResourceLimit;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.WorkloadMetadataConfig;
/**
- * Verifies a ResourceLimit message.
+ * Verifies a WorkloadMetadataConfig 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 ResourceLimit message from a plain object. Also converts values to their respective internal types.
+ * Creates a WorkloadMetadataConfig message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns ResourceLimit
+ * @returns WorkloadMetadataConfig
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.ResourceLimit;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.WorkloadMetadataConfig;
/**
- * Creates a plain object from a ResourceLimit message. Also converts values to other types if specified.
- * @param message ResourceLimit
+ * Creates a plain object from a WorkloadMetadataConfig message. Also converts values to other types if specified.
+ * @param message WorkloadMetadataConfig
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.ResourceLimit, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.WorkloadMetadataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this ResourceLimit to JSON.
+ * Converts this WorkloadMetadataConfig to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a NodePoolAutoscaling. */
- interface INodePoolAutoscaling {
+ namespace WorkloadMetadataConfig {
- /** NodePoolAutoscaling enabled */
- enabled?: (boolean|null);
+ /** Mode enum. */
+ enum Mode {
+ MODE_UNSPECIFIED = 0,
+ GCE_METADATA = 1,
+ GKE_METADATA = 2
+ }
+ }
- /** NodePoolAutoscaling minNodeCount */
- minNodeCount?: (number|null);
+ /** Properties of a SetNetworkPolicyRequest. */
+ interface ISetNetworkPolicyRequest {
- /** NodePoolAutoscaling maxNodeCount */
- maxNodeCount?: (number|null);
+ /** SetNetworkPolicyRequest projectId */
+ projectId?: (string|null);
- /** NodePoolAutoscaling autoprovisioned */
- autoprovisioned?: (boolean|null);
+ /** SetNetworkPolicyRequest zone */
+ zone?: (string|null);
+
+ /** SetNetworkPolicyRequest clusterId */
+ clusterId?: (string|null);
+
+ /** SetNetworkPolicyRequest networkPolicy */
+ networkPolicy?: (google.container.v1.INetworkPolicy|null);
+
+ /** SetNetworkPolicyRequest name */
+ name?: (string|null);
}
- /** Represents a NodePoolAutoscaling. */
- class NodePoolAutoscaling implements INodePoolAutoscaling {
+ /** Represents a SetNetworkPolicyRequest. */
+ class SetNetworkPolicyRequest implements ISetNetworkPolicyRequest {
/**
- * Constructs a new NodePoolAutoscaling.
+ * Constructs a new SetNetworkPolicyRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.INodePoolAutoscaling);
+ constructor(properties?: google.container.v1.ISetNetworkPolicyRequest);
- /** NodePoolAutoscaling enabled. */
- public enabled: boolean;
+ /** SetNetworkPolicyRequest projectId. */
+ public projectId: string;
- /** NodePoolAutoscaling minNodeCount. */
- public minNodeCount: number;
+ /** SetNetworkPolicyRequest zone. */
+ public zone: string;
- /** NodePoolAutoscaling maxNodeCount. */
- public maxNodeCount: number;
+ /** SetNetworkPolicyRequest clusterId. */
+ public clusterId: string;
- /** NodePoolAutoscaling autoprovisioned. */
- public autoprovisioned: boolean;
+ /** SetNetworkPolicyRequest networkPolicy. */
+ public networkPolicy?: (google.container.v1.INetworkPolicy|null);
+
+ /** SetNetworkPolicyRequest name. */
+ public name: string;
/**
- * Creates a new NodePoolAutoscaling instance using the specified properties.
+ * Creates a new SetNetworkPolicyRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns NodePoolAutoscaling instance
+ * @returns SetNetworkPolicyRequest instance
*/
- public static create(properties?: google.container.v1.INodePoolAutoscaling): google.container.v1.NodePoolAutoscaling;
+ public static create(properties?: google.container.v1.ISetNetworkPolicyRequest): google.container.v1.SetNetworkPolicyRequest;
/**
- * Encodes the specified NodePoolAutoscaling message. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages.
- * @param message NodePoolAutoscaling message or plain object to encode
+ * Encodes the specified SetNetworkPolicyRequest message. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages.
+ * @param message SetNetworkPolicyRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.INodePoolAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.ISetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified NodePoolAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages.
- * @param message NodePoolAutoscaling message or plain object to encode
+ * Encodes the specified SetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages.
+ * @param message SetNetworkPolicyRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.INodePoolAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.ISetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a NodePoolAutoscaling message from the specified reader or buffer.
+ * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns NodePoolAutoscaling
+ * @returns SetNetworkPolicyRequest
* @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.NodePoolAutoscaling;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetNetworkPolicyRequest;
/**
- * Decodes a NodePoolAutoscaling message from the specified reader or buffer, length delimited.
+ * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns NodePoolAutoscaling
+ * @returns SetNetworkPolicyRequest
* @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.NodePoolAutoscaling;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetNetworkPolicyRequest;
/**
- * Verifies a NodePoolAutoscaling message.
+ * Verifies a SetNetworkPolicyRequest 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 NodePoolAutoscaling message from a plain object. Also converts values to their respective internal types.
+ * Creates a SetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns NodePoolAutoscaling
+ * @returns SetNetworkPolicyRequest
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.NodePoolAutoscaling;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.SetNetworkPolicyRequest;
/**
- * Creates a plain object from a NodePoolAutoscaling message. Also converts values to other types if specified.
- * @param message NodePoolAutoscaling
+ * Creates a plain object from a SetNetworkPolicyRequest message. Also converts values to other types if specified.
+ * @param message SetNetworkPolicyRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.NodePoolAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.SetNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this NodePoolAutoscaling to JSON.
+ * Converts this SetNetworkPolicyRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a SetLabelsRequest. */
- interface ISetLabelsRequest {
+ /** Properties of a SetMaintenancePolicyRequest. */
+ interface ISetMaintenancePolicyRequest {
- /** SetLabelsRequest projectId */
+ /** SetMaintenancePolicyRequest projectId */
projectId?: (string|null);
- /** SetLabelsRequest zone */
+ /** SetMaintenancePolicyRequest zone */
zone?: (string|null);
- /** SetLabelsRequest clusterId */
- clusterId?: (string|null);
-
- /** SetLabelsRequest resourceLabels */
- resourceLabels?: ({ [k: string]: string }|null);
+ /** SetMaintenancePolicyRequest clusterId */
+ clusterId?: (string|null);
- /** SetLabelsRequest labelFingerprint */
- labelFingerprint?: (string|null);
+ /** SetMaintenancePolicyRequest maintenancePolicy */
+ maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null);
- /** SetLabelsRequest name */
+ /** SetMaintenancePolicyRequest name */
name?: (string|null);
}
- /** Represents a SetLabelsRequest. */
- class SetLabelsRequest implements ISetLabelsRequest {
+ /** Represents a SetMaintenancePolicyRequest. */
+ class SetMaintenancePolicyRequest implements ISetMaintenancePolicyRequest {
/**
- * Constructs a new SetLabelsRequest.
+ * Constructs a new SetMaintenancePolicyRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.ISetLabelsRequest);
+ constructor(properties?: google.container.v1.ISetMaintenancePolicyRequest);
- /** SetLabelsRequest projectId. */
+ /** SetMaintenancePolicyRequest projectId. */
public projectId: string;
- /** SetLabelsRequest zone. */
+ /** SetMaintenancePolicyRequest zone. */
public zone: string;
- /** SetLabelsRequest clusterId. */
+ /** SetMaintenancePolicyRequest clusterId. */
public clusterId: string;
- /** SetLabelsRequest resourceLabels. */
- public resourceLabels: { [k: string]: string };
-
- /** SetLabelsRequest labelFingerprint. */
- public labelFingerprint: string;
+ /** SetMaintenancePolicyRequest maintenancePolicy. */
+ public maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null);
- /** SetLabelsRequest name. */
+ /** SetMaintenancePolicyRequest name. */
public name: string;
/**
- * Creates a new SetLabelsRequest instance using the specified properties.
+ * Creates a new SetMaintenancePolicyRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns SetLabelsRequest instance
+ * @returns SetMaintenancePolicyRequest instance
*/
- public static create(properties?: google.container.v1.ISetLabelsRequest): google.container.v1.SetLabelsRequest;
+ public static create(properties?: google.container.v1.ISetMaintenancePolicyRequest): google.container.v1.SetMaintenancePolicyRequest;
/**
- * Encodes the specified SetLabelsRequest message. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages.
- * @param message SetLabelsRequest message or plain object to encode
+ * Encodes the specified SetMaintenancePolicyRequest message. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages.
+ * @param message SetMaintenancePolicyRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.ISetLabelsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.ISetMaintenancePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified SetLabelsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages.
- * @param message SetLabelsRequest message or plain object to encode
+ * Encodes the specified SetMaintenancePolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages.
+ * @param message SetMaintenancePolicyRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.ISetLabelsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.ISetMaintenancePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a SetLabelsRequest message from the specified reader or buffer.
+ * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns SetLabelsRequest
+ * @returns SetMaintenancePolicyRequest
* @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.SetLabelsRequest;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetMaintenancePolicyRequest;
/**
- * Decodes a SetLabelsRequest message from the specified reader or buffer, length delimited.
+ * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns SetLabelsRequest
+ * @returns SetMaintenancePolicyRequest
* @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.SetLabelsRequest;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetMaintenancePolicyRequest;
/**
- * Verifies a SetLabelsRequest message.
+ * Verifies a SetMaintenancePolicyRequest 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 SetLabelsRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a SetMaintenancePolicyRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns SetLabelsRequest
+ * @returns SetMaintenancePolicyRequest
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.SetLabelsRequest;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.SetMaintenancePolicyRequest;
/**
- * Creates a plain object from a SetLabelsRequest message. Also converts values to other types if specified.
- * @param message SetLabelsRequest
+ * Creates a plain object from a SetMaintenancePolicyRequest message. Also converts values to other types if specified.
+ * @param message SetMaintenancePolicyRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.SetLabelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.SetMaintenancePolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this SetLabelsRequest to JSON.
+ * Converts this SetMaintenancePolicyRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a SetLegacyAbacRequest. */
- interface ISetLegacyAbacRequest {
-
- /** SetLegacyAbacRequest projectId */
- projectId?: (string|null);
-
- /** SetLegacyAbacRequest zone */
- zone?: (string|null);
-
- /** SetLegacyAbacRequest clusterId */
- clusterId?: (string|null);
+ /** Properties of a StatusCondition. */
+ interface IStatusCondition {
- /** SetLegacyAbacRequest enabled */
- enabled?: (boolean|null);
+ /** StatusCondition code */
+ code?: (google.container.v1.StatusCondition.Code|keyof typeof google.container.v1.StatusCondition.Code|null);
- /** SetLegacyAbacRequest name */
- name?: (string|null);
+ /** StatusCondition message */
+ message?: (string|null);
}
- /** Represents a SetLegacyAbacRequest. */
- class SetLegacyAbacRequest implements ISetLegacyAbacRequest {
+ /** Represents a StatusCondition. */
+ class StatusCondition implements IStatusCondition {
/**
- * Constructs a new SetLegacyAbacRequest.
+ * Constructs a new StatusCondition.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.ISetLegacyAbacRequest);
-
- /** SetLegacyAbacRequest projectId. */
- public projectId: string;
-
- /** SetLegacyAbacRequest zone. */
- public zone: string;
-
- /** SetLegacyAbacRequest clusterId. */
- public clusterId: string;
+ constructor(properties?: google.container.v1.IStatusCondition);
- /** SetLegacyAbacRequest enabled. */
- public enabled: boolean;
+ /** StatusCondition code. */
+ public code: (google.container.v1.StatusCondition.Code|keyof typeof google.container.v1.StatusCondition.Code);
- /** SetLegacyAbacRequest name. */
- public name: string;
+ /** StatusCondition message. */
+ public message: string;
/**
- * Creates a new SetLegacyAbacRequest instance using the specified properties.
+ * Creates a new StatusCondition instance using the specified properties.
* @param [properties] Properties to set
- * @returns SetLegacyAbacRequest instance
+ * @returns StatusCondition instance
*/
- public static create(properties?: google.container.v1.ISetLegacyAbacRequest): google.container.v1.SetLegacyAbacRequest;
+ public static create(properties?: google.container.v1.IStatusCondition): google.container.v1.StatusCondition;
/**
- * Encodes the specified SetLegacyAbacRequest message. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages.
- * @param message SetLegacyAbacRequest message or plain object to encode
+ * Encodes the specified StatusCondition message. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages.
+ * @param message StatusCondition message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.ISetLegacyAbacRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IStatusCondition, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified SetLegacyAbacRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages.
- * @param message SetLegacyAbacRequest message or plain object to encode
+ * Encodes the specified StatusCondition message, length delimited. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages.
+ * @param message StatusCondition message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.ISetLegacyAbacRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IStatusCondition, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a SetLegacyAbacRequest message from the specified reader or buffer.
+ * Decodes a StatusCondition message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns SetLegacyAbacRequest
+ * @returns StatusCondition
* @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.SetLegacyAbacRequest;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.StatusCondition;
/**
- * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited.
+ * Decodes a StatusCondition message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns SetLegacyAbacRequest
+ * @returns StatusCondition
* @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.SetLegacyAbacRequest;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.StatusCondition;
/**
- * Verifies a SetLegacyAbacRequest message.
+ * Verifies a StatusCondition 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 SetLegacyAbacRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a StatusCondition message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns SetLegacyAbacRequest
+ * @returns StatusCondition
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.SetLegacyAbacRequest;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.StatusCondition;
/**
- * Creates a plain object from a SetLegacyAbacRequest message. Also converts values to other types if specified.
- * @param message SetLegacyAbacRequest
+ * Creates a plain object from a StatusCondition message. Also converts values to other types if specified.
+ * @param message StatusCondition
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.SetLegacyAbacRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.StatusCondition, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this SetLegacyAbacRequest to JSON.
+ * Converts this StatusCondition to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a StartIPRotationRequest. */
- interface IStartIPRotationRequest {
+ namespace StatusCondition {
- /** StartIPRotationRequest projectId */
- projectId?: (string|null);
+ /** Code enum. */
+ enum Code {
+ UNKNOWN = 0,
+ GCE_STOCKOUT = 1,
+ GKE_SERVICE_ACCOUNT_DELETED = 2,
+ GCE_QUOTA_EXCEEDED = 3,
+ SET_BY_OPERATOR = 4,
+ CLOUD_KMS_KEY_ERROR = 7
+ }
+ }
- /** StartIPRotationRequest zone */
- zone?: (string|null);
+ /** Properties of a NetworkConfig. */
+ interface INetworkConfig {
- /** StartIPRotationRequest clusterId */
- clusterId?: (string|null);
+ /** NetworkConfig network */
+ network?: (string|null);
- /** StartIPRotationRequest name */
- name?: (string|null);
+ /** NetworkConfig subnetwork */
+ subnetwork?: (string|null);
- /** StartIPRotationRequest rotateCredentials */
- rotateCredentials?: (boolean|null);
+ /** NetworkConfig enableIntraNodeVisibility */
+ enableIntraNodeVisibility?: (boolean|null);
+
+ /** NetworkConfig defaultSnatStatus */
+ defaultSnatStatus?: (google.container.v1.IDefaultSnatStatus|null);
}
- /** Represents a StartIPRotationRequest. */
- class StartIPRotationRequest implements IStartIPRotationRequest {
+ /** Represents a NetworkConfig. */
+ class NetworkConfig implements INetworkConfig {
/**
- * Constructs a new StartIPRotationRequest.
+ * Constructs a new NetworkConfig.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IStartIPRotationRequest);
-
- /** StartIPRotationRequest projectId. */
- public projectId: string;
+ constructor(properties?: google.container.v1.INetworkConfig);
- /** StartIPRotationRequest zone. */
- public zone: string;
+ /** NetworkConfig network. */
+ public network: string;
- /** StartIPRotationRequest clusterId. */
- public clusterId: string;
+ /** NetworkConfig subnetwork. */
+ public subnetwork: string;
- /** StartIPRotationRequest name. */
- public name: string;
+ /** NetworkConfig enableIntraNodeVisibility. */
+ public enableIntraNodeVisibility: boolean;
- /** StartIPRotationRequest rotateCredentials. */
- public rotateCredentials: boolean;
+ /** NetworkConfig defaultSnatStatus. */
+ public defaultSnatStatus?: (google.container.v1.IDefaultSnatStatus|null);
/**
- * Creates a new StartIPRotationRequest instance using the specified properties.
+ * Creates a new NetworkConfig instance using the specified properties.
* @param [properties] Properties to set
- * @returns StartIPRotationRequest instance
+ * @returns NetworkConfig instance
*/
- public static create(properties?: google.container.v1.IStartIPRotationRequest): google.container.v1.StartIPRotationRequest;
+ public static create(properties?: google.container.v1.INetworkConfig): google.container.v1.NetworkConfig;
/**
- * Encodes the specified StartIPRotationRequest message. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages.
- * @param message StartIPRotationRequest message or plain object to encode
+ * Encodes the specified NetworkConfig message. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages.
+ * @param message NetworkConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IStartIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified StartIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages.
- * @param message StartIPRotationRequest message or plain object to encode
+ * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages.
+ * @param message NetworkConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IStartIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a StartIPRotationRequest message from the specified reader or buffer.
+ * Decodes a NetworkConfig message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns StartIPRotationRequest
+ * @returns NetworkConfig
* @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.StartIPRotationRequest;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.NetworkConfig;
/**
- * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited.
+ * Decodes a NetworkConfig message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns StartIPRotationRequest
+ * @returns NetworkConfig
* @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.StartIPRotationRequest;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.NetworkConfig;
/**
- * Verifies a StartIPRotationRequest message.
+ * Verifies a NetworkConfig 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 StartIPRotationRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns StartIPRotationRequest
+ * @returns NetworkConfig
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.StartIPRotationRequest;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.NetworkConfig;
/**
- * Creates a plain object from a StartIPRotationRequest message. Also converts values to other types if specified.
- * @param message StartIPRotationRequest
+ * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified.
+ * @param message NetworkConfig
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.StartIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this StartIPRotationRequest to JSON.
+ * Converts this NetworkConfig to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a CompleteIPRotationRequest. */
- interface ICompleteIPRotationRequest {
-
- /** CompleteIPRotationRequest projectId */
- projectId?: (string|null);
-
- /** CompleteIPRotationRequest zone */
- zone?: (string|null);
-
- /** CompleteIPRotationRequest clusterId */
- clusterId?: (string|null);
+ /** Properties of a GetOpenIDConfigRequest. */
+ interface IGetOpenIDConfigRequest {
- /** CompleteIPRotationRequest name */
- name?: (string|null);
+ /** GetOpenIDConfigRequest parent */
+ parent?: (string|null);
}
- /** Represents a CompleteIPRotationRequest. */
- class CompleteIPRotationRequest implements ICompleteIPRotationRequest {
+ /** Represents a GetOpenIDConfigRequest. */
+ class GetOpenIDConfigRequest implements IGetOpenIDConfigRequest {
/**
- * Constructs a new CompleteIPRotationRequest.
+ * Constructs a new GetOpenIDConfigRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.ICompleteIPRotationRequest);
-
- /** CompleteIPRotationRequest projectId. */
- public projectId: string;
-
- /** CompleteIPRotationRequest zone. */
- public zone: string;
-
- /** CompleteIPRotationRequest clusterId. */
- public clusterId: string;
+ constructor(properties?: google.container.v1.IGetOpenIDConfigRequest);
- /** CompleteIPRotationRequest name. */
- public name: string;
+ /** GetOpenIDConfigRequest parent. */
+ public parent: string;
/**
- * Creates a new CompleteIPRotationRequest instance using the specified properties.
+ * Creates a new GetOpenIDConfigRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns CompleteIPRotationRequest instance
+ * @returns GetOpenIDConfigRequest instance
*/
- public static create(properties?: google.container.v1.ICompleteIPRotationRequest): google.container.v1.CompleteIPRotationRequest;
+ public static create(properties?: google.container.v1.IGetOpenIDConfigRequest): google.container.v1.GetOpenIDConfigRequest;
/**
- * Encodes the specified CompleteIPRotationRequest message. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages.
- * @param message CompleteIPRotationRequest message or plain object to encode
+ * Encodes the specified GetOpenIDConfigRequest message. Does not implicitly {@link google.container.v1.GetOpenIDConfigRequest.verify|verify} messages.
+ * @param message GetOpenIDConfigRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.ICompleteIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IGetOpenIDConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified CompleteIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages.
- * @param message CompleteIPRotationRequest message or plain object to encode
+ * Encodes the specified GetOpenIDConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOpenIDConfigRequest.verify|verify} messages.
+ * @param message GetOpenIDConfigRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.ICompleteIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IGetOpenIDConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a CompleteIPRotationRequest message from the specified reader or buffer.
+ * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns CompleteIPRotationRequest
+ * @returns GetOpenIDConfigRequest
* @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.CompleteIPRotationRequest;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.GetOpenIDConfigRequest;
/**
- * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited.
+ * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns CompleteIPRotationRequest
+ * @returns GetOpenIDConfigRequest
* @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.CompleteIPRotationRequest;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.GetOpenIDConfigRequest;
/**
- * Verifies a CompleteIPRotationRequest message.
+ * Verifies a GetOpenIDConfigRequest 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 CompleteIPRotationRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a GetOpenIDConfigRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns CompleteIPRotationRequest
+ * @returns GetOpenIDConfigRequest
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.CompleteIPRotationRequest;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.GetOpenIDConfigRequest;
/**
- * Creates a plain object from a CompleteIPRotationRequest message. Also converts values to other types if specified.
- * @param message CompleteIPRotationRequest
+ * Creates a plain object from a GetOpenIDConfigRequest message. Also converts values to other types if specified.
+ * @param message GetOpenIDConfigRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.CompleteIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.GetOpenIDConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this CompleteIPRotationRequest to JSON.
+ * Converts this GetOpenIDConfigRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of an AcceleratorConfig. */
- interface IAcceleratorConfig {
+ /** Properties of a GetOpenIDConfigResponse. */
+ interface IGetOpenIDConfigResponse {
- /** AcceleratorConfig acceleratorCount */
- acceleratorCount?: (number|Long|string|null);
+ /** GetOpenIDConfigResponse issuer */
+ issuer?: (string|null);
- /** AcceleratorConfig acceleratorType */
- acceleratorType?: (string|null);
+ /** GetOpenIDConfigResponse jwksUri */
+ jwksUri?: (string|null);
+
+ /** GetOpenIDConfigResponse responseTypesSupported */
+ responseTypesSupported?: (string[]|null);
+
+ /** GetOpenIDConfigResponse subjectTypesSupported */
+ subjectTypesSupported?: (string[]|null);
+
+ /** GetOpenIDConfigResponse idTokenSigningAlgValuesSupported */
+ idTokenSigningAlgValuesSupported?: (string[]|null);
+
+ /** GetOpenIDConfigResponse claimsSupported */
+ claimsSupported?: (string[]|null);
+
+ /** GetOpenIDConfigResponse grantTypes */
+ grantTypes?: (string[]|null);
}
- /** Represents an AcceleratorConfig. */
- class AcceleratorConfig implements IAcceleratorConfig {
+ /** Represents a GetOpenIDConfigResponse. */
+ class GetOpenIDConfigResponse implements IGetOpenIDConfigResponse {
/**
- * Constructs a new AcceleratorConfig.
+ * Constructs a new GetOpenIDConfigResponse.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IAcceleratorConfig);
+ constructor(properties?: google.container.v1.IGetOpenIDConfigResponse);
- /** AcceleratorConfig acceleratorCount. */
- public acceleratorCount: (number|Long|string);
+ /** GetOpenIDConfigResponse issuer. */
+ public issuer: string;
- /** AcceleratorConfig acceleratorType. */
- public acceleratorType: string;
+ /** GetOpenIDConfigResponse jwksUri. */
+ public jwksUri: string;
+
+ /** GetOpenIDConfigResponse responseTypesSupported. */
+ public responseTypesSupported: string[];
+
+ /** GetOpenIDConfigResponse subjectTypesSupported. */
+ public subjectTypesSupported: string[];
+
+ /** GetOpenIDConfigResponse idTokenSigningAlgValuesSupported. */
+ public idTokenSigningAlgValuesSupported: string[];
+
+ /** GetOpenIDConfigResponse claimsSupported. */
+ public claimsSupported: string[];
+
+ /** GetOpenIDConfigResponse grantTypes. */
+ public grantTypes: string[];
/**
- * Creates a new AcceleratorConfig instance using the specified properties.
+ * Creates a new GetOpenIDConfigResponse instance using the specified properties.
* @param [properties] Properties to set
- * @returns AcceleratorConfig instance
+ * @returns GetOpenIDConfigResponse instance
*/
- public static create(properties?: google.container.v1.IAcceleratorConfig): google.container.v1.AcceleratorConfig;
+ public static create(properties?: google.container.v1.IGetOpenIDConfigResponse): google.container.v1.GetOpenIDConfigResponse;
/**
- * Encodes the specified AcceleratorConfig message. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages.
- * @param message AcceleratorConfig message or plain object to encode
+ * Encodes the specified GetOpenIDConfigResponse message. Does not implicitly {@link google.container.v1.GetOpenIDConfigResponse.verify|verify} messages.
+ * @param message GetOpenIDConfigResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IAcceleratorConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IGetOpenIDConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified AcceleratorConfig message, length delimited. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages.
- * @param message AcceleratorConfig message or plain object to encode
+ * Encodes the specified GetOpenIDConfigResponse message, length delimited. Does not implicitly {@link google.container.v1.GetOpenIDConfigResponse.verify|verify} messages.
+ * @param message GetOpenIDConfigResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IAcceleratorConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IGetOpenIDConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes an AcceleratorConfig message from the specified reader or buffer.
+ * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns AcceleratorConfig
+ * @returns GetOpenIDConfigResponse
* @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.AcceleratorConfig;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.GetOpenIDConfigResponse;
/**
- * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited.
+ * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns AcceleratorConfig
+ * @returns GetOpenIDConfigResponse
* @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.AcceleratorConfig;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.GetOpenIDConfigResponse;
/**
- * Verifies an AcceleratorConfig message.
+ * Verifies a GetOpenIDConfigResponse 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 AcceleratorConfig message from a plain object. Also converts values to their respective internal types.
+ * Creates a GetOpenIDConfigResponse message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns AcceleratorConfig
+ * @returns GetOpenIDConfigResponse
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.AcceleratorConfig;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.GetOpenIDConfigResponse;
/**
- * Creates a plain object from an AcceleratorConfig message. Also converts values to other types if specified.
- * @param message AcceleratorConfig
+ * Creates a plain object from a GetOpenIDConfigResponse message. Also converts values to other types if specified.
+ * @param message GetOpenIDConfigResponse
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.AcceleratorConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.GetOpenIDConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this AcceleratorConfig to JSON.
+ * Converts this GetOpenIDConfigResponse to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a SetNetworkPolicyRequest. */
- interface ISetNetworkPolicyRequest {
-
- /** SetNetworkPolicyRequest projectId */
- projectId?: (string|null);
-
- /** SetNetworkPolicyRequest zone */
- zone?: (string|null);
-
- /** SetNetworkPolicyRequest clusterId */
- clusterId?: (string|null);
-
- /** SetNetworkPolicyRequest networkPolicy */
- networkPolicy?: (google.container.v1.INetworkPolicy|null);
+ /** Properties of a GetJSONWebKeysRequest. */
+ interface IGetJSONWebKeysRequest {
- /** SetNetworkPolicyRequest name */
- name?: (string|null);
+ /** GetJSONWebKeysRequest parent */
+ parent?: (string|null);
}
- /** Represents a SetNetworkPolicyRequest. */
- class SetNetworkPolicyRequest implements ISetNetworkPolicyRequest {
+ /** Represents a GetJSONWebKeysRequest. */
+ class GetJSONWebKeysRequest implements IGetJSONWebKeysRequest {
/**
- * Constructs a new SetNetworkPolicyRequest.
+ * Constructs a new GetJSONWebKeysRequest.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.ISetNetworkPolicyRequest);
-
- /** SetNetworkPolicyRequest projectId. */
- public projectId: string;
-
- /** SetNetworkPolicyRequest zone. */
- public zone: string;
-
- /** SetNetworkPolicyRequest clusterId. */
- public clusterId: string;
+ constructor(properties?: google.container.v1.IGetJSONWebKeysRequest);
- /** SetNetworkPolicyRequest networkPolicy. */
- public networkPolicy?: (google.container.v1.INetworkPolicy|null);
-
- /** SetNetworkPolicyRequest name. */
- public name: string;
+ /** GetJSONWebKeysRequest parent. */
+ public parent: string;
/**
- * Creates a new SetNetworkPolicyRequest instance using the specified properties.
+ * Creates a new GetJSONWebKeysRequest instance using the specified properties.
* @param [properties] Properties to set
- * @returns SetNetworkPolicyRequest instance
+ * @returns GetJSONWebKeysRequest instance
*/
- public static create(properties?: google.container.v1.ISetNetworkPolicyRequest): google.container.v1.SetNetworkPolicyRequest;
+ public static create(properties?: google.container.v1.IGetJSONWebKeysRequest): google.container.v1.GetJSONWebKeysRequest;
/**
- * Encodes the specified SetNetworkPolicyRequest message. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages.
- * @param message SetNetworkPolicyRequest message or plain object to encode
+ * Encodes the specified GetJSONWebKeysRequest message. Does not implicitly {@link google.container.v1.GetJSONWebKeysRequest.verify|verify} messages.
+ * @param message GetJSONWebKeysRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.ISetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IGetJSONWebKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified SetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages.
- * @param message SetNetworkPolicyRequest message or plain object to encode
+ * Encodes the specified GetJSONWebKeysRequest message, length delimited. Does not implicitly {@link google.container.v1.GetJSONWebKeysRequest.verify|verify} messages.
+ * @param message GetJSONWebKeysRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.ISetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IGetJSONWebKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer.
+ * Decodes a GetJSONWebKeysRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns SetNetworkPolicyRequest
+ * @returns GetJSONWebKeysRequest
* @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.SetNetworkPolicyRequest;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.GetJSONWebKeysRequest;
/**
- * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited.
+ * Decodes a GetJSONWebKeysRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns SetNetworkPolicyRequest
+ * @returns GetJSONWebKeysRequest
* @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.SetNetworkPolicyRequest;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.GetJSONWebKeysRequest;
/**
- * Verifies a SetNetworkPolicyRequest message.
+ * Verifies a GetJSONWebKeysRequest 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 SetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a GetJSONWebKeysRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns SetNetworkPolicyRequest
+ * @returns GetJSONWebKeysRequest
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.SetNetworkPolicyRequest;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.GetJSONWebKeysRequest;
/**
- * Creates a plain object from a SetNetworkPolicyRequest message. Also converts values to other types if specified.
- * @param message SetNetworkPolicyRequest
+ * Creates a plain object from a GetJSONWebKeysRequest message. Also converts values to other types if specified.
+ * @param message GetJSONWebKeysRequest
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.SetNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.GetJSONWebKeysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this SetNetworkPolicyRequest to JSON.
+ * Converts this GetJSONWebKeysRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a SetMaintenancePolicyRequest. */
- interface ISetMaintenancePolicyRequest {
+ /** Properties of a Jwk. */
+ interface IJwk {
- /** SetMaintenancePolicyRequest projectId */
- projectId?: (string|null);
+ /** Jwk kty */
+ kty?: (string|null);
- /** SetMaintenancePolicyRequest zone */
- zone?: (string|null);
+ /** Jwk alg */
+ alg?: (string|null);
- /** SetMaintenancePolicyRequest clusterId */
- clusterId?: (string|null);
+ /** Jwk use */
+ use?: (string|null);
- /** SetMaintenancePolicyRequest maintenancePolicy */
- maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null);
+ /** Jwk kid */
+ kid?: (string|null);
- /** SetMaintenancePolicyRequest name */
- name?: (string|null);
+ /** Jwk n */
+ n?: (string|null);
+
+ /** Jwk e */
+ e?: (string|null);
+
+ /** Jwk x */
+ x?: (string|null);
+
+ /** Jwk y */
+ y?: (string|null);
+
+ /** Jwk crv */
+ crv?: (string|null);
}
- /** Represents a SetMaintenancePolicyRequest. */
- class SetMaintenancePolicyRequest implements ISetMaintenancePolicyRequest {
+ /** Represents a Jwk. */
+ class Jwk implements IJwk {
/**
- * Constructs a new SetMaintenancePolicyRequest.
+ * Constructs a new Jwk.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.ISetMaintenancePolicyRequest);
+ constructor(properties?: google.container.v1.IJwk);
- /** SetMaintenancePolicyRequest projectId. */
- public projectId: string;
+ /** Jwk kty. */
+ public kty: string;
- /** SetMaintenancePolicyRequest zone. */
- public zone: string;
+ /** Jwk alg. */
+ public alg: string;
- /** SetMaintenancePolicyRequest clusterId. */
- public clusterId: string;
+ /** Jwk use. */
+ public use: string;
- /** SetMaintenancePolicyRequest maintenancePolicy. */
- public maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null);
+ /** Jwk kid. */
+ public kid: string;
- /** SetMaintenancePolicyRequest name. */
- public name: string;
+ /** Jwk n. */
+ public n: string;
+
+ /** Jwk e. */
+ public e: string;
+
+ /** Jwk x. */
+ public x: string;
+
+ /** Jwk y. */
+ public y: string;
+
+ /** Jwk crv. */
+ public crv: string;
/**
- * Creates a new SetMaintenancePolicyRequest instance using the specified properties.
+ * Creates a new Jwk instance using the specified properties.
* @param [properties] Properties to set
- * @returns SetMaintenancePolicyRequest instance
+ * @returns Jwk instance
*/
- public static create(properties?: google.container.v1.ISetMaintenancePolicyRequest): google.container.v1.SetMaintenancePolicyRequest;
+ public static create(properties?: google.container.v1.IJwk): google.container.v1.Jwk;
/**
- * Encodes the specified SetMaintenancePolicyRequest message. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages.
- * @param message SetMaintenancePolicyRequest message or plain object to encode
+ * Encodes the specified Jwk message. Does not implicitly {@link google.container.v1.Jwk.verify|verify} messages.
+ * @param message Jwk message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.ISetMaintenancePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IJwk, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified SetMaintenancePolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages.
- * @param message SetMaintenancePolicyRequest message or plain object to encode
+ * Encodes the specified Jwk message, length delimited. Does not implicitly {@link google.container.v1.Jwk.verify|verify} messages.
+ * @param message Jwk message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.ISetMaintenancePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IJwk, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer.
+ * Decodes a Jwk message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns SetMaintenancePolicyRequest
+ * @returns Jwk
* @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.SetMaintenancePolicyRequest;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.Jwk;
/**
- * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited.
+ * Decodes a Jwk message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns SetMaintenancePolicyRequest
+ * @returns Jwk
* @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.SetMaintenancePolicyRequest;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.Jwk;
/**
- * Verifies a SetMaintenancePolicyRequest message.
+ * Verifies a Jwk 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 SetMaintenancePolicyRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a Jwk message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns SetMaintenancePolicyRequest
+ * @returns Jwk
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.SetMaintenancePolicyRequest;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.Jwk;
/**
- * Creates a plain object from a SetMaintenancePolicyRequest message. Also converts values to other types if specified.
- * @param message SetMaintenancePolicyRequest
+ * Creates a plain object from a Jwk message. Also converts values to other types if specified.
+ * @param message Jwk
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.SetMaintenancePolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.Jwk, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this SetMaintenancePolicyRequest to JSON.
+ * Converts this Jwk to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- /** Properties of a StatusCondition. */
- interface IStatusCondition {
-
- /** StatusCondition code */
- code?: (google.container.v1.StatusCondition.Code|keyof typeof google.container.v1.StatusCondition.Code|null);
+ /** Properties of a GetJSONWebKeysResponse. */
+ interface IGetJSONWebKeysResponse {
- /** StatusCondition message */
- message?: (string|null);
+ /** GetJSONWebKeysResponse keys */
+ keys?: (google.container.v1.IJwk[]|null);
}
- /** Represents a StatusCondition. */
- class StatusCondition implements IStatusCondition {
+ /** Represents a GetJSONWebKeysResponse. */
+ class GetJSONWebKeysResponse implements IGetJSONWebKeysResponse {
/**
- * Constructs a new StatusCondition.
+ * Constructs a new GetJSONWebKeysResponse.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.IStatusCondition);
-
- /** StatusCondition code. */
- public code: (google.container.v1.StatusCondition.Code|keyof typeof google.container.v1.StatusCondition.Code);
+ constructor(properties?: google.container.v1.IGetJSONWebKeysResponse);
- /** StatusCondition message. */
- public message: string;
+ /** GetJSONWebKeysResponse keys. */
+ public keys: google.container.v1.IJwk[];
/**
- * Creates a new StatusCondition instance using the specified properties.
+ * Creates a new GetJSONWebKeysResponse instance using the specified properties.
* @param [properties] Properties to set
- * @returns StatusCondition instance
+ * @returns GetJSONWebKeysResponse instance
*/
- public static create(properties?: google.container.v1.IStatusCondition): google.container.v1.StatusCondition;
+ public static create(properties?: google.container.v1.IGetJSONWebKeysResponse): google.container.v1.GetJSONWebKeysResponse;
- /**
- * Encodes the specified StatusCondition message. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages.
- * @param message StatusCondition message or plain object to encode
+ /**
+ * Encodes the specified GetJSONWebKeysResponse message. Does not implicitly {@link google.container.v1.GetJSONWebKeysResponse.verify|verify} messages.
+ * @param message GetJSONWebKeysResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.IStatusCondition, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IGetJSONWebKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified StatusCondition message, length delimited. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages.
- * @param message StatusCondition message or plain object to encode
+ * Encodes the specified GetJSONWebKeysResponse message, length delimited. Does not implicitly {@link google.container.v1.GetJSONWebKeysResponse.verify|verify} messages.
+ * @param message GetJSONWebKeysResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.IStatusCondition, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IGetJSONWebKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a StatusCondition message from the specified reader or buffer.
+ * Decodes a GetJSONWebKeysResponse message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns StatusCondition
+ * @returns GetJSONWebKeysResponse
* @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.StatusCondition;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.GetJSONWebKeysResponse;
/**
- * Decodes a StatusCondition message from the specified reader or buffer, length delimited.
+ * Decodes a GetJSONWebKeysResponse message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns StatusCondition
+ * @returns GetJSONWebKeysResponse
* @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.StatusCondition;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.GetJSONWebKeysResponse;
/**
- * Verifies a StatusCondition message.
+ * Verifies a GetJSONWebKeysResponse 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 StatusCondition message from a plain object. Also converts values to their respective internal types.
+ * Creates a GetJSONWebKeysResponse message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns StatusCondition
+ * @returns GetJSONWebKeysResponse
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.StatusCondition;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.GetJSONWebKeysResponse;
/**
- * Creates a plain object from a StatusCondition message. Also converts values to other types if specified.
- * @param message StatusCondition
+ * Creates a plain object from a GetJSONWebKeysResponse message. Also converts values to other types if specified.
+ * @param message GetJSONWebKeysResponse
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.StatusCondition, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.GetJSONWebKeysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this StatusCondition to JSON.
+ * Converts this GetJSONWebKeysResponse to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
- namespace StatusCondition {
-
- /** Code enum. */
- enum Code {
- UNKNOWN = 0,
- GCE_STOCKOUT = 1,
- GKE_SERVICE_ACCOUNT_DELETED = 2,
- GCE_QUOTA_EXCEEDED = 3,
- SET_BY_OPERATOR = 4,
- CLOUD_KMS_KEY_ERROR = 7
- }
- }
-
- /** Properties of a NetworkConfig. */
- interface INetworkConfig {
-
- /** NetworkConfig network */
- network?: (string|null);
-
- /** NetworkConfig subnetwork */
- subnetwork?: (string|null);
+ /** Properties of a ReleaseChannel. */
+ interface IReleaseChannel {
- /** NetworkConfig enableIntraNodeVisibility */
- enableIntraNodeVisibility?: (boolean|null);
+ /** ReleaseChannel channel */
+ channel?: (google.container.v1.ReleaseChannel.Channel|keyof typeof google.container.v1.ReleaseChannel.Channel|null);
}
- /** Represents a NetworkConfig. */
- class NetworkConfig implements INetworkConfig {
+ /** Represents a ReleaseChannel. */
+ class ReleaseChannel implements IReleaseChannel {
/**
- * Constructs a new NetworkConfig.
+ * Constructs a new ReleaseChannel.
* @param [properties] Properties to set
*/
- constructor(properties?: google.container.v1.INetworkConfig);
-
- /** NetworkConfig network. */
- public network: string;
-
- /** NetworkConfig subnetwork. */
- public subnetwork: string;
+ constructor(properties?: google.container.v1.IReleaseChannel);
- /** NetworkConfig enableIntraNodeVisibility. */
- public enableIntraNodeVisibility: boolean;
+ /** ReleaseChannel channel. */
+ public channel: (google.container.v1.ReleaseChannel.Channel|keyof typeof google.container.v1.ReleaseChannel.Channel);
/**
- * Creates a new NetworkConfig instance using the specified properties.
+ * Creates a new ReleaseChannel instance using the specified properties.
* @param [properties] Properties to set
- * @returns NetworkConfig instance
+ * @returns ReleaseChannel instance
*/
- public static create(properties?: google.container.v1.INetworkConfig): google.container.v1.NetworkConfig;
+ public static create(properties?: google.container.v1.IReleaseChannel): google.container.v1.ReleaseChannel;
/**
- * Encodes the specified NetworkConfig message. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages.
- * @param message NetworkConfig message or plain object to encode
+ * Encodes the specified ReleaseChannel message. Does not implicitly {@link google.container.v1.ReleaseChannel.verify|verify} messages.
+ * @param message ReleaseChannel message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encode(message: google.container.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encode(message: google.container.v1.IReleaseChannel, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages.
- * @param message NetworkConfig message or plain object to encode
+ * Encodes the specified ReleaseChannel message, length delimited. Does not implicitly {@link google.container.v1.ReleaseChannel.verify|verify} messages.
+ * @param message ReleaseChannel message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
- public static encodeDelimited(message: google.container.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+ public static encodeDelimited(message: google.container.v1.IReleaseChannel, writer?: $protobuf.Writer): $protobuf.Writer;
/**
- * Decodes a NetworkConfig message from the specified reader or buffer.
+ * Decodes a ReleaseChannel message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
- * @returns NetworkConfig
+ * @returns ReleaseChannel
* @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.NetworkConfig;
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ReleaseChannel;
/**
- * Decodes a NetworkConfig message from the specified reader or buffer, length delimited.
+ * Decodes a ReleaseChannel message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
- * @returns NetworkConfig
+ * @returns ReleaseChannel
* @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.NetworkConfig;
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ReleaseChannel;
/**
- * Verifies a NetworkConfig message.
+ * Verifies a ReleaseChannel 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 NetworkConfig message from a plain object. Also converts values to their respective internal types.
+ * Creates a ReleaseChannel message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
- * @returns NetworkConfig
+ * @returns ReleaseChannel
*/
- public static fromObject(object: { [k: string]: any }): google.container.v1.NetworkConfig;
+ public static fromObject(object: { [k: string]: any }): google.container.v1.ReleaseChannel;
/**
- * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified.
- * @param message NetworkConfig
+ * Creates a plain object from a ReleaseChannel message. Also converts values to other types if specified.
+ * @param message ReleaseChannel
* @param [options] Conversion options
* @returns Plain object
*/
- public static toObject(message: google.container.v1.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+ public static toObject(message: google.container.v1.ReleaseChannel, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
- * Converts this NetworkConfig to JSON.
+ * Converts this ReleaseChannel to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
+ namespace ReleaseChannel {
+
+ /** Channel enum. */
+ enum Channel {
+ UNSPECIFIED = 0,
+ RAPID = 1,
+ REGULAR = 2,
+ STABLE = 3
+ }
+ }
+
/** Properties of an IntraNodeVisibilityConfig. */
interface IIntraNodeVisibilityConfig {
@@ -9017,6 +10892,96 @@ export namespace google {
public toJSON(): { [k: string]: any };
}
+ /** Properties of a WorkloadIdentityConfig. */
+ interface IWorkloadIdentityConfig {
+
+ /** WorkloadIdentityConfig workloadPool */
+ workloadPool?: (string|null);
+ }
+
+ /** Represents a WorkloadIdentityConfig. */
+ class WorkloadIdentityConfig implements IWorkloadIdentityConfig {
+
+ /**
+ * Constructs a new WorkloadIdentityConfig.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.IWorkloadIdentityConfig);
+
+ /** WorkloadIdentityConfig workloadPool. */
+ public workloadPool: string;
+
+ /**
+ * Creates a new WorkloadIdentityConfig instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WorkloadIdentityConfig instance
+ */
+ public static create(properties?: google.container.v1.IWorkloadIdentityConfig): google.container.v1.WorkloadIdentityConfig;
+
+ /**
+ * Encodes the specified WorkloadIdentityConfig message. Does not implicitly {@link google.container.v1.WorkloadIdentityConfig.verify|verify} messages.
+ * @param message WorkloadIdentityConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.IWorkloadIdentityConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WorkloadIdentityConfig message, length delimited. Does not implicitly {@link google.container.v1.WorkloadIdentityConfig.verify|verify} messages.
+ * @param message WorkloadIdentityConfig message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.IWorkloadIdentityConfig, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WorkloadIdentityConfig message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WorkloadIdentityConfig
+ * @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.WorkloadIdentityConfig;
+
+ /**
+ * Decodes a WorkloadIdentityConfig message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WorkloadIdentityConfig
+ * @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.WorkloadIdentityConfig;
+
+ /**
+ * Verifies a WorkloadIdentityConfig 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 WorkloadIdentityConfig message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WorkloadIdentityConfig
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.WorkloadIdentityConfig;
+
+ /**
+ * Creates a plain object from a WorkloadIdentityConfig message. Also converts values to other types if specified.
+ * @param message WorkloadIdentityConfig
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.WorkloadIdentityConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WorkloadIdentityConfig to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
/** Properties of a DatabaseEncryption. */
interface IDatabaseEncryption {
@@ -9929,6 +11894,186 @@ export namespace google {
*/
public toJSON(): { [k: string]: any };
}
+
+ /** Properties of a DefaultSnatStatus. */
+ interface IDefaultSnatStatus {
+
+ /** DefaultSnatStatus disabled */
+ disabled?: (boolean|null);
+ }
+
+ /** Represents a DefaultSnatStatus. */
+ class DefaultSnatStatus implements IDefaultSnatStatus {
+
+ /**
+ * Constructs a new DefaultSnatStatus.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.IDefaultSnatStatus);
+
+ /** DefaultSnatStatus disabled. */
+ public disabled: boolean;
+
+ /**
+ * Creates a new DefaultSnatStatus instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DefaultSnatStatus instance
+ */
+ public static create(properties?: google.container.v1.IDefaultSnatStatus): google.container.v1.DefaultSnatStatus;
+
+ /**
+ * Encodes the specified DefaultSnatStatus message. Does not implicitly {@link google.container.v1.DefaultSnatStatus.verify|verify} messages.
+ * @param message DefaultSnatStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.IDefaultSnatStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DefaultSnatStatus message, length delimited. Does not implicitly {@link google.container.v1.DefaultSnatStatus.verify|verify} messages.
+ * @param message DefaultSnatStatus message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.IDefaultSnatStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DefaultSnatStatus message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DefaultSnatStatus
+ * @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.DefaultSnatStatus;
+
+ /**
+ * Decodes a DefaultSnatStatus message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DefaultSnatStatus
+ * @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.DefaultSnatStatus;
+
+ /**
+ * Verifies a DefaultSnatStatus 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 DefaultSnatStatus message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DefaultSnatStatus
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.DefaultSnatStatus;
+
+ /**
+ * Creates a plain object from a DefaultSnatStatus message. Also converts values to other types if specified.
+ * @param message DefaultSnatStatus
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.DefaultSnatStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DefaultSnatStatus to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
+
+ /** Properties of a ShieldedNodes. */
+ interface IShieldedNodes {
+
+ /** ShieldedNodes enabled */
+ enabled?: (boolean|null);
+ }
+
+ /** Represents a ShieldedNodes. */
+ class ShieldedNodes implements IShieldedNodes {
+
+ /**
+ * Constructs a new ShieldedNodes.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.container.v1.IShieldedNodes);
+
+ /** ShieldedNodes enabled. */
+ public enabled: boolean;
+
+ /**
+ * Creates a new ShieldedNodes instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ShieldedNodes instance
+ */
+ public static create(properties?: google.container.v1.IShieldedNodes): google.container.v1.ShieldedNodes;
+
+ /**
+ * Encodes the specified ShieldedNodes message. Does not implicitly {@link google.container.v1.ShieldedNodes.verify|verify} messages.
+ * @param message ShieldedNodes message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.container.v1.IShieldedNodes, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ShieldedNodes message, length delimited. Does not implicitly {@link google.container.v1.ShieldedNodes.verify|verify} messages.
+ * @param message ShieldedNodes message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.container.v1.IShieldedNodes, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ShieldedNodes message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ShieldedNodes
+ * @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.ShieldedNodes;
+
+ /**
+ * Decodes a ShieldedNodes message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ShieldedNodes
+ * @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.ShieldedNodes;
+
+ /**
+ * Verifies a ShieldedNodes 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 ShieldedNodes message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ShieldedNodes
+ */
+ public static fromObject(object: { [k: string]: any }): google.container.v1.ShieldedNodes;
+
+ /**
+ * Creates a plain object from a ShieldedNodes message. Also converts values to other types if specified.
+ * @param message ShieldedNodes
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.container.v1.ShieldedNodes, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ShieldedNodes to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+ }
}
}
diff --git a/protos/protos.js b/protos/protos.js
index 5b10360..d908cb5 100644
--- a/protos/protos.js
+++ b/protos/protos.js
@@ -650,6 +650,39 @@
* @variation 2
*/
+ /**
+ * Callback as used by {@link google.container.v1.ClusterManager#getJSONWebKeys}.
+ * @memberof google.container.v1.ClusterManager
+ * @typedef GetJSONWebKeysCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.container.v1.GetJSONWebKeysResponse} [response] GetJSONWebKeysResponse
+ */
+
+ /**
+ * Calls GetJSONWebKeys.
+ * @function getJSONWebKeys
+ * @memberof google.container.v1.ClusterManager
+ * @instance
+ * @param {google.container.v1.IGetJSONWebKeysRequest} request GetJSONWebKeysRequest message or plain object
+ * @param {google.container.v1.ClusterManager.GetJSONWebKeysCallback} callback Node-style callback called with the error, if any, and GetJSONWebKeysResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ClusterManager.prototype.getJSONWebKeys = function getJSONWebKeys(request, callback) {
+ return this.rpcCall(getJSONWebKeys, $root.google.container.v1.GetJSONWebKeysRequest, $root.google.container.v1.GetJSONWebKeysResponse, request, callback);
+ }, "name", { value: "GetJSONWebKeys" });
+
+ /**
+ * Calls GetJSONWebKeys.
+ * @function getJSONWebKeys
+ * @memberof google.container.v1.ClusterManager
+ * @instance
+ * @param {google.container.v1.IGetJSONWebKeysRequest} request GetJSONWebKeysRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
/**
* Callback as used by {@link google.container.v1.ClusterManager#listNodePools}.
* @memberof google.container.v1.ClusterManager
@@ -1134,8 +1167,13 @@
* @property {Array.|null} [accelerators] NodeConfig accelerators
* @property {string|null} [diskType] NodeConfig diskType
* @property {string|null} [minCpuPlatform] NodeConfig minCpuPlatform
+ * @property {google.container.v1.IWorkloadMetadataConfig|null} [workloadMetadataConfig] NodeConfig workloadMetadataConfig
* @property {Array.|null} [taints] NodeConfig taints
+ * @property {google.container.v1.ISandboxConfig|null} [sandboxConfig] NodeConfig sandboxConfig
+ * @property {string|null} [nodeGroup] NodeConfig nodeGroup
+ * @property {google.container.v1.IReservationAffinity|null} [reservationAffinity] NodeConfig reservationAffinity
* @property {google.container.v1.IShieldedInstanceConfig|null} [shieldedInstanceConfig] NodeConfig shieldedInstanceConfig
+ * @property {string|null} [bootDiskKmsKey] NodeConfig bootDiskKmsKey
*/
/**
@@ -1263,6 +1301,14 @@
*/
NodeConfig.prototype.minCpuPlatform = "";
+ /**
+ * NodeConfig workloadMetadataConfig.
+ * @member {google.container.v1.IWorkloadMetadataConfig|null|undefined} workloadMetadataConfig
+ * @memberof google.container.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.workloadMetadataConfig = null;
+
/**
* NodeConfig taints.
* @member {Array.} taints
@@ -1271,6 +1317,30 @@
*/
NodeConfig.prototype.taints = $util.emptyArray;
+ /**
+ * NodeConfig sandboxConfig.
+ * @member {google.container.v1.ISandboxConfig|null|undefined} sandboxConfig
+ * @memberof google.container.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.sandboxConfig = null;
+
+ /**
+ * NodeConfig nodeGroup.
+ * @member {string} nodeGroup
+ * @memberof google.container.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.nodeGroup = "";
+
+ /**
+ * NodeConfig reservationAffinity.
+ * @member {google.container.v1.IReservationAffinity|null|undefined} reservationAffinity
+ * @memberof google.container.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.reservationAffinity = null;
+
/**
* NodeConfig shieldedInstanceConfig.
* @member {google.container.v1.IShieldedInstanceConfig|null|undefined} shieldedInstanceConfig
@@ -1279,6 +1349,14 @@
*/
NodeConfig.prototype.shieldedInstanceConfig = null;
+ /**
+ * NodeConfig bootDiskKmsKey.
+ * @member {string} bootDiskKmsKey
+ * @memberof google.container.v1.NodeConfig
+ * @instance
+ */
+ NodeConfig.prototype.bootDiskKmsKey = "";
+
/**
* Creates a new NodeConfig instance using the specified properties.
* @function create
@@ -1334,11 +1412,21 @@
writer.uint32(/* id 12, wireType 2 =*/98).string(message.diskType);
if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform"))
writer.uint32(/* id 13, wireType 2 =*/106).string(message.minCpuPlatform);
+ if (message.workloadMetadataConfig != null && Object.hasOwnProperty.call(message, "workloadMetadataConfig"))
+ $root.google.container.v1.WorkloadMetadataConfig.encode(message.workloadMetadataConfig, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
if (message.taints != null && message.taints.length)
for (var i = 0; i < message.taints.length; ++i)
$root.google.container.v1.NodeTaint.encode(message.taints[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
+ if (message.sandboxConfig != null && Object.hasOwnProperty.call(message, "sandboxConfig"))
+ $root.google.container.v1.SandboxConfig.encode(message.sandboxConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
+ if (message.nodeGroup != null && Object.hasOwnProperty.call(message, "nodeGroup"))
+ writer.uint32(/* id 18, wireType 2 =*/146).string(message.nodeGroup);
+ if (message.reservationAffinity != null && Object.hasOwnProperty.call(message, "reservationAffinity"))
+ $root.google.container.v1.ReservationAffinity.encode(message.reservationAffinity, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
if (message.shieldedInstanceConfig != null && Object.hasOwnProperty.call(message, "shieldedInstanceConfig"))
$root.google.container.v1.ShieldedInstanceConfig.encode(message.shieldedInstanceConfig, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
+ if (message.bootDiskKmsKey != null && Object.hasOwnProperty.call(message, "bootDiskKmsKey"))
+ writer.uint32(/* id 23, wireType 2 =*/186).string(message.bootDiskKmsKey);
return writer;
};
@@ -1456,14 +1544,29 @@
case 13:
message.minCpuPlatform = reader.string();
break;
+ case 14:
+ message.workloadMetadataConfig = $root.google.container.v1.WorkloadMetadataConfig.decode(reader, reader.uint32());
+ break;
case 15:
if (!(message.taints && message.taints.length))
message.taints = [];
message.taints.push($root.google.container.v1.NodeTaint.decode(reader, reader.uint32()));
break;
+ case 17:
+ message.sandboxConfig = $root.google.container.v1.SandboxConfig.decode(reader, reader.uint32());
+ break;
+ case 18:
+ message.nodeGroup = reader.string();
+ break;
+ case 19:
+ message.reservationAffinity = $root.google.container.v1.ReservationAffinity.decode(reader, reader.uint32());
+ break;
case 20:
message.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.decode(reader, reader.uint32());
break;
+ case 23:
+ message.bootDiskKmsKey = reader.string();
+ break;
default:
reader.skipType(tag & 7);
break;
@@ -1562,6 +1665,11 @@
if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform"))
if (!$util.isString(message.minCpuPlatform))
return "minCpuPlatform: string expected";
+ if (message.workloadMetadataConfig != null && message.hasOwnProperty("workloadMetadataConfig")) {
+ var error = $root.google.container.v1.WorkloadMetadataConfig.verify(message.workloadMetadataConfig);
+ if (error)
+ return "workloadMetadataConfig." + error;
+ }
if (message.taints != null && message.hasOwnProperty("taints")) {
if (!Array.isArray(message.taints))
return "taints: array expected";
@@ -1571,11 +1679,27 @@
return "taints." + error;
}
}
+ if (message.sandboxConfig != null && message.hasOwnProperty("sandboxConfig")) {
+ var error = $root.google.container.v1.SandboxConfig.verify(message.sandboxConfig);
+ if (error)
+ return "sandboxConfig." + error;
+ }
+ if (message.nodeGroup != null && message.hasOwnProperty("nodeGroup"))
+ if (!$util.isString(message.nodeGroup))
+ return "nodeGroup: string expected";
+ if (message.reservationAffinity != null && message.hasOwnProperty("reservationAffinity")) {
+ var error = $root.google.container.v1.ReservationAffinity.verify(message.reservationAffinity);
+ if (error)
+ return "reservationAffinity." + error;
+ }
if (message.shieldedInstanceConfig != null && message.hasOwnProperty("shieldedInstanceConfig")) {
var error = $root.google.container.v1.ShieldedInstanceConfig.verify(message.shieldedInstanceConfig);
if (error)
return "shieldedInstanceConfig." + error;
}
+ if (message.bootDiskKmsKey != null && message.hasOwnProperty("bootDiskKmsKey"))
+ if (!$util.isString(message.bootDiskKmsKey))
+ return "bootDiskKmsKey: string expected";
return null;
};
@@ -1645,6 +1769,11 @@
message.diskType = String(object.diskType);
if (object.minCpuPlatform != null)
message.minCpuPlatform = String(object.minCpuPlatform);
+ if (object.workloadMetadataConfig != null) {
+ if (typeof object.workloadMetadataConfig !== "object")
+ throw TypeError(".google.container.v1.NodeConfig.workloadMetadataConfig: object expected");
+ message.workloadMetadataConfig = $root.google.container.v1.WorkloadMetadataConfig.fromObject(object.workloadMetadataConfig);
+ }
if (object.taints) {
if (!Array.isArray(object.taints))
throw TypeError(".google.container.v1.NodeConfig.taints: array expected");
@@ -1655,11 +1784,25 @@
message.taints[i] = $root.google.container.v1.NodeTaint.fromObject(object.taints[i]);
}
}
+ if (object.sandboxConfig != null) {
+ if (typeof object.sandboxConfig !== "object")
+ throw TypeError(".google.container.v1.NodeConfig.sandboxConfig: object expected");
+ message.sandboxConfig = $root.google.container.v1.SandboxConfig.fromObject(object.sandboxConfig);
+ }
+ if (object.nodeGroup != null)
+ message.nodeGroup = String(object.nodeGroup);
+ if (object.reservationAffinity != null) {
+ if (typeof object.reservationAffinity !== "object")
+ throw TypeError(".google.container.v1.NodeConfig.reservationAffinity: object expected");
+ message.reservationAffinity = $root.google.container.v1.ReservationAffinity.fromObject(object.reservationAffinity);
+ }
if (object.shieldedInstanceConfig != null) {
if (typeof object.shieldedInstanceConfig !== "object")
throw TypeError(".google.container.v1.NodeConfig.shieldedInstanceConfig: object expected");
message.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.fromObject(object.shieldedInstanceConfig);
}
+ if (object.bootDiskKmsKey != null)
+ message.bootDiskKmsKey = String(object.bootDiskKmsKey);
return message;
};
@@ -1695,7 +1838,12 @@
object.preemptible = false;
object.diskType = "";
object.minCpuPlatform = "";
+ object.workloadMetadataConfig = null;
+ object.sandboxConfig = null;
+ object.nodeGroup = "";
+ object.reservationAffinity = null;
object.shieldedInstanceConfig = null;
+ object.bootDiskKmsKey = "";
}
if (message.machineType != null && message.hasOwnProperty("machineType"))
object.machineType = message.machineType;
@@ -1739,13 +1887,23 @@
object.diskType = message.diskType;
if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform"))
object.minCpuPlatform = message.minCpuPlatform;
+ if (message.workloadMetadataConfig != null && message.hasOwnProperty("workloadMetadataConfig"))
+ object.workloadMetadataConfig = $root.google.container.v1.WorkloadMetadataConfig.toObject(message.workloadMetadataConfig, options);
if (message.taints && message.taints.length) {
object.taints = [];
for (var j = 0; j < message.taints.length; ++j)
object.taints[j] = $root.google.container.v1.NodeTaint.toObject(message.taints[j], options);
}
+ if (message.sandboxConfig != null && message.hasOwnProperty("sandboxConfig"))
+ object.sandboxConfig = $root.google.container.v1.SandboxConfig.toObject(message.sandboxConfig, options);
+ if (message.nodeGroup != null && message.hasOwnProperty("nodeGroup"))
+ object.nodeGroup = message.nodeGroup;
+ if (message.reservationAffinity != null && message.hasOwnProperty("reservationAffinity"))
+ object.reservationAffinity = $root.google.container.v1.ReservationAffinity.toObject(message.reservationAffinity, options);
if (message.shieldedInstanceConfig != null && message.hasOwnProperty("shieldedInstanceConfig"))
object.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.toObject(message.shieldedInstanceConfig, options);
+ if (message.bootDiskKmsKey != null && message.hasOwnProperty("bootDiskKmsKey"))
+ object.bootDiskKmsKey = message.bootDiskKmsKey;
return object;
};
@@ -1973,26 +2131,24 @@
return ShieldedInstanceConfig;
})();
- v1.NodeTaint = (function() {
+ v1.SandboxConfig = (function() {
/**
- * Properties of a NodeTaint.
+ * Properties of a SandboxConfig.
* @memberof google.container.v1
- * @interface INodeTaint
- * @property {string|null} [key] NodeTaint key
- * @property {string|null} [value] NodeTaint value
- * @property {google.container.v1.NodeTaint.Effect|null} [effect] NodeTaint effect
+ * @interface ISandboxConfig
+ * @property {google.container.v1.SandboxConfig.Type|null} [type] SandboxConfig type
*/
/**
- * Constructs a new NodeTaint.
+ * Constructs a new SandboxConfig.
* @memberof google.container.v1
- * @classdesc Represents a NodeTaint.
- * @implements INodeTaint
+ * @classdesc Represents a SandboxConfig.
+ * @implements ISandboxConfig
* @constructor
- * @param {google.container.v1.INodeTaint=} [properties] Properties to set
+ * @param {google.container.v1.ISandboxConfig=} [properties] Properties to set
*/
- function NodeTaint(properties) {
+ function SandboxConfig(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -2000,101 +2156,75 @@
}
/**
- * NodeTaint key.
- * @member {string} key
- * @memberof google.container.v1.NodeTaint
- * @instance
- */
- NodeTaint.prototype.key = "";
-
- /**
- * NodeTaint value.
- * @member {string} value
- * @memberof google.container.v1.NodeTaint
- * @instance
- */
- NodeTaint.prototype.value = "";
-
- /**
- * NodeTaint effect.
- * @member {google.container.v1.NodeTaint.Effect} effect
- * @memberof google.container.v1.NodeTaint
+ * SandboxConfig type.
+ * @member {google.container.v1.SandboxConfig.Type} type
+ * @memberof google.container.v1.SandboxConfig
* @instance
*/
- NodeTaint.prototype.effect = 0;
+ SandboxConfig.prototype.type = 0;
/**
- * Creates a new NodeTaint instance using the specified properties.
+ * Creates a new SandboxConfig instance using the specified properties.
* @function create
- * @memberof google.container.v1.NodeTaint
+ * @memberof google.container.v1.SandboxConfig
* @static
- * @param {google.container.v1.INodeTaint=} [properties] Properties to set
- * @returns {google.container.v1.NodeTaint} NodeTaint instance
+ * @param {google.container.v1.ISandboxConfig=} [properties] Properties to set
+ * @returns {google.container.v1.SandboxConfig} SandboxConfig instance
*/
- NodeTaint.create = function create(properties) {
- return new NodeTaint(properties);
+ SandboxConfig.create = function create(properties) {
+ return new SandboxConfig(properties);
};
/**
- * Encodes the specified NodeTaint message. Does not implicitly {@link google.container.v1.NodeTaint.verify|verify} messages.
+ * Encodes the specified SandboxConfig message. Does not implicitly {@link google.container.v1.SandboxConfig.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.NodeTaint
+ * @memberof google.container.v1.SandboxConfig
* @static
- * @param {google.container.v1.INodeTaint} message NodeTaint message or plain object to encode
+ * @param {google.container.v1.ISandboxConfig} message SandboxConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- NodeTaint.encode = function encode(message, writer) {
+ SandboxConfig.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.key != null && Object.hasOwnProperty.call(message, "key"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
- if (message.value != null && Object.hasOwnProperty.call(message, "value"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
- if (message.effect != null && Object.hasOwnProperty.call(message, "effect"))
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.effect);
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type);
return writer;
};
/**
- * Encodes the specified NodeTaint message, length delimited. Does not implicitly {@link google.container.v1.NodeTaint.verify|verify} messages.
+ * Encodes the specified SandboxConfig message, length delimited. Does not implicitly {@link google.container.v1.SandboxConfig.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.NodeTaint
+ * @memberof google.container.v1.SandboxConfig
* @static
- * @param {google.container.v1.INodeTaint} message NodeTaint message or plain object to encode
+ * @param {google.container.v1.ISandboxConfig} message SandboxConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- NodeTaint.encodeDelimited = function encodeDelimited(message, writer) {
+ SandboxConfig.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a NodeTaint message from the specified reader or buffer.
+ * Decodes a SandboxConfig message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.NodeTaint
+ * @memberof google.container.v1.SandboxConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.NodeTaint} NodeTaint
+ * @returns {google.container.v1.SandboxConfig} SandboxConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- NodeTaint.decode = function decode(reader, length) {
+ SandboxConfig.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.NodeTaint();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SandboxConfig();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
- case 1:
- message.key = reader.string();
- break;
case 2:
- message.value = reader.string();
- break;
- case 3:
- message.effect = reader.int32();
+ message.type = reader.int32();
break;
default:
reader.skipType(tag & 7);
@@ -2105,170 +2235,137 @@
};
/**
- * Decodes a NodeTaint message from the specified reader or buffer, length delimited.
+ * Decodes a SandboxConfig message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.NodeTaint
+ * @memberof google.container.v1.SandboxConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.NodeTaint} NodeTaint
+ * @returns {google.container.v1.SandboxConfig} SandboxConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- NodeTaint.decodeDelimited = function decodeDelimited(reader) {
+ SandboxConfig.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a NodeTaint message.
+ * Verifies a SandboxConfig message.
* @function verify
- * @memberof google.container.v1.NodeTaint
+ * @memberof google.container.v1.SandboxConfig
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- NodeTaint.verify = function verify(message) {
+ SandboxConfig.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.key != null && message.hasOwnProperty("key"))
- if (!$util.isString(message.key))
- return "key: string expected";
- if (message.value != null && message.hasOwnProperty("value"))
- if (!$util.isString(message.value))
- return "value: string expected";
- if (message.effect != null && message.hasOwnProperty("effect"))
- switch (message.effect) {
+ if (message.type != null && message.hasOwnProperty("type"))
+ switch (message.type) {
default:
- return "effect: enum value expected";
+ return "type: enum value expected";
case 0:
case 1:
- case 2:
- case 3:
break;
}
return null;
};
/**
- * Creates a NodeTaint message from a plain object. Also converts values to their respective internal types.
+ * Creates a SandboxConfig message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.NodeTaint
+ * @memberof google.container.v1.SandboxConfig
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.NodeTaint} NodeTaint
+ * @returns {google.container.v1.SandboxConfig} SandboxConfig
*/
- NodeTaint.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.NodeTaint)
+ SandboxConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.SandboxConfig)
return object;
- var message = new $root.google.container.v1.NodeTaint();
- if (object.key != null)
- message.key = String(object.key);
- if (object.value != null)
- message.value = String(object.value);
- switch (object.effect) {
- case "EFFECT_UNSPECIFIED":
+ var message = new $root.google.container.v1.SandboxConfig();
+ switch (object.type) {
+ case "UNSPECIFIED":
case 0:
- message.effect = 0;
+ message.type = 0;
break;
- case "NO_SCHEDULE":
+ case "GVISOR":
case 1:
- message.effect = 1;
- break;
- case "PREFER_NO_SCHEDULE":
- case 2:
- message.effect = 2;
- break;
- case "NO_EXECUTE":
- case 3:
- message.effect = 3;
+ message.type = 1;
break;
}
return message;
};
/**
- * Creates a plain object from a NodeTaint message. Also converts values to other types if specified.
+ * Creates a plain object from a SandboxConfig message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.NodeTaint
+ * @memberof google.container.v1.SandboxConfig
* @static
- * @param {google.container.v1.NodeTaint} message NodeTaint
+ * @param {google.container.v1.SandboxConfig} message SandboxConfig
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- NodeTaint.toObject = function toObject(message, options) {
+ SandboxConfig.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.defaults) {
- object.key = "";
- object.value = "";
- object.effect = options.enums === String ? "EFFECT_UNSPECIFIED" : 0;
- }
- if (message.key != null && message.hasOwnProperty("key"))
- object.key = message.key;
- if (message.value != null && message.hasOwnProperty("value"))
- object.value = message.value;
- if (message.effect != null && message.hasOwnProperty("effect"))
- object.effect = options.enums === String ? $root.google.container.v1.NodeTaint.Effect[message.effect] : message.effect;
+ if (options.defaults)
+ object.type = options.enums === String ? "UNSPECIFIED" : 0;
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = options.enums === String ? $root.google.container.v1.SandboxConfig.Type[message.type] : message.type;
return object;
};
/**
- * Converts this NodeTaint to JSON.
+ * Converts this SandboxConfig to JSON.
* @function toJSON
- * @memberof google.container.v1.NodeTaint
+ * @memberof google.container.v1.SandboxConfig
* @instance
* @returns {Object.} JSON object
*/
- NodeTaint.prototype.toJSON = function toJSON() {
+ SandboxConfig.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
/**
- * Effect enum.
- * @name google.container.v1.NodeTaint.Effect
+ * Type enum.
+ * @name google.container.v1.SandboxConfig.Type
* @enum {number}
- * @property {number} EFFECT_UNSPECIFIED=0 EFFECT_UNSPECIFIED value
- * @property {number} NO_SCHEDULE=1 NO_SCHEDULE value
- * @property {number} PREFER_NO_SCHEDULE=2 PREFER_NO_SCHEDULE value
- * @property {number} NO_EXECUTE=3 NO_EXECUTE value
+ * @property {number} UNSPECIFIED=0 UNSPECIFIED value
+ * @property {number} GVISOR=1 GVISOR value
*/
- NodeTaint.Effect = (function() {
+ SandboxConfig.Type = (function() {
var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "EFFECT_UNSPECIFIED"] = 0;
- values[valuesById[1] = "NO_SCHEDULE"] = 1;
- values[valuesById[2] = "PREFER_NO_SCHEDULE"] = 2;
- values[valuesById[3] = "NO_EXECUTE"] = 3;
+ values[valuesById[0] = "UNSPECIFIED"] = 0;
+ values[valuesById[1] = "GVISOR"] = 1;
return values;
})();
- return NodeTaint;
+ return SandboxConfig;
})();
- v1.MasterAuth = (function() {
+ v1.ReservationAffinity = (function() {
/**
- * Properties of a MasterAuth.
+ * Properties of a ReservationAffinity.
* @memberof google.container.v1
- * @interface IMasterAuth
- * @property {string|null} [username] MasterAuth username
- * @property {string|null} [password] MasterAuth password
- * @property {google.container.v1.IClientCertificateConfig|null} [clientCertificateConfig] MasterAuth clientCertificateConfig
- * @property {string|null} [clusterCaCertificate] MasterAuth clusterCaCertificate
- * @property {string|null} [clientCertificate] MasterAuth clientCertificate
- * @property {string|null} [clientKey] MasterAuth clientKey
+ * @interface IReservationAffinity
+ * @property {google.container.v1.ReservationAffinity.Type|null} [consumeReservationType] ReservationAffinity consumeReservationType
+ * @property {string|null} [key] ReservationAffinity key
+ * @property {Array.|null} [values] ReservationAffinity values
*/
/**
- * Constructs a new MasterAuth.
+ * Constructs a new ReservationAffinity.
* @memberof google.container.v1
- * @classdesc Represents a MasterAuth.
- * @implements IMasterAuth
+ * @classdesc Represents a ReservationAffinity.
+ * @implements IReservationAffinity
* @constructor
- * @param {google.container.v1.IMasterAuth=} [properties] Properties to set
+ * @param {google.container.v1.IReservationAffinity=} [properties] Properties to set
*/
- function MasterAuth(properties) {
+ function ReservationAffinity(properties) {
+ this.values = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -2276,140 +2373,104 @@
}
/**
- * MasterAuth username.
- * @member {string} username
- * @memberof google.container.v1.MasterAuth
- * @instance
- */
- MasterAuth.prototype.username = "";
-
- /**
- * MasterAuth password.
- * @member {string} password
- * @memberof google.container.v1.MasterAuth
- * @instance
- */
- MasterAuth.prototype.password = "";
-
- /**
- * MasterAuth clientCertificateConfig.
- * @member {google.container.v1.IClientCertificateConfig|null|undefined} clientCertificateConfig
- * @memberof google.container.v1.MasterAuth
- * @instance
- */
- MasterAuth.prototype.clientCertificateConfig = null;
-
- /**
- * MasterAuth clusterCaCertificate.
- * @member {string} clusterCaCertificate
- * @memberof google.container.v1.MasterAuth
+ * ReservationAffinity consumeReservationType.
+ * @member {google.container.v1.ReservationAffinity.Type} consumeReservationType
+ * @memberof google.container.v1.ReservationAffinity
* @instance
*/
- MasterAuth.prototype.clusterCaCertificate = "";
+ ReservationAffinity.prototype.consumeReservationType = 0;
/**
- * MasterAuth clientCertificate.
- * @member {string} clientCertificate
- * @memberof google.container.v1.MasterAuth
+ * ReservationAffinity key.
+ * @member {string} key
+ * @memberof google.container.v1.ReservationAffinity
* @instance
*/
- MasterAuth.prototype.clientCertificate = "";
+ ReservationAffinity.prototype.key = "";
/**
- * MasterAuth clientKey.
- * @member {string} clientKey
- * @memberof google.container.v1.MasterAuth
+ * ReservationAffinity values.
+ * @member {Array.} values
+ * @memberof google.container.v1.ReservationAffinity
* @instance
*/
- MasterAuth.prototype.clientKey = "";
+ ReservationAffinity.prototype.values = $util.emptyArray;
/**
- * Creates a new MasterAuth instance using the specified properties.
+ * Creates a new ReservationAffinity instance using the specified properties.
* @function create
- * @memberof google.container.v1.MasterAuth
+ * @memberof google.container.v1.ReservationAffinity
* @static
- * @param {google.container.v1.IMasterAuth=} [properties] Properties to set
- * @returns {google.container.v1.MasterAuth} MasterAuth instance
+ * @param {google.container.v1.IReservationAffinity=} [properties] Properties to set
+ * @returns {google.container.v1.ReservationAffinity} ReservationAffinity instance
*/
- MasterAuth.create = function create(properties) {
- return new MasterAuth(properties);
+ ReservationAffinity.create = function create(properties) {
+ return new ReservationAffinity(properties);
};
/**
- * Encodes the specified MasterAuth message. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages.
+ * Encodes the specified ReservationAffinity message. Does not implicitly {@link google.container.v1.ReservationAffinity.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.MasterAuth
+ * @memberof google.container.v1.ReservationAffinity
* @static
- * @param {google.container.v1.IMasterAuth} message MasterAuth message or plain object to encode
+ * @param {google.container.v1.IReservationAffinity} message ReservationAffinity message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- MasterAuth.encode = function encode(message, writer) {
+ ReservationAffinity.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.username != null && Object.hasOwnProperty.call(message, "username"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.username);
- if (message.password != null && Object.hasOwnProperty.call(message, "password"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.password);
- if (message.clientCertificateConfig != null && Object.hasOwnProperty.call(message, "clientCertificateConfig"))
- $root.google.container.v1.ClientCertificateConfig.encode(message.clientCertificateConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- if (message.clusterCaCertificate != null && Object.hasOwnProperty.call(message, "clusterCaCertificate"))
- writer.uint32(/* id 100, wireType 2 =*/802).string(message.clusterCaCertificate);
- if (message.clientCertificate != null && Object.hasOwnProperty.call(message, "clientCertificate"))
- writer.uint32(/* id 101, wireType 2 =*/810).string(message.clientCertificate);
- if (message.clientKey != null && Object.hasOwnProperty.call(message, "clientKey"))
- writer.uint32(/* id 102, wireType 2 =*/818).string(message.clientKey);
+ if (message.consumeReservationType != null && Object.hasOwnProperty.call(message, "consumeReservationType"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.consumeReservationType);
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.key);
+ if (message.values != null && message.values.length)
+ for (var i = 0; i < message.values.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.values[i]);
return writer;
};
/**
- * Encodes the specified MasterAuth message, length delimited. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages.
+ * Encodes the specified ReservationAffinity message, length delimited. Does not implicitly {@link google.container.v1.ReservationAffinity.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.MasterAuth
+ * @memberof google.container.v1.ReservationAffinity
* @static
- * @param {google.container.v1.IMasterAuth} message MasterAuth message or plain object to encode
+ * @param {google.container.v1.IReservationAffinity} message ReservationAffinity message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- MasterAuth.encodeDelimited = function encodeDelimited(message, writer) {
+ ReservationAffinity.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a MasterAuth message from the specified reader or buffer.
+ * Decodes a ReservationAffinity message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.MasterAuth
+ * @memberof google.container.v1.ReservationAffinity
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.MasterAuth} MasterAuth
+ * @returns {google.container.v1.ReservationAffinity} ReservationAffinity
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- MasterAuth.decode = function decode(reader, length) {
+ ReservationAffinity.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.MasterAuth();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ReservationAffinity();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.username = reader.string();
+ message.consumeReservationType = reader.int32();
break;
case 2:
- message.password = reader.string();
+ message.key = reader.string();
break;
case 3:
- message.clientCertificateConfig = $root.google.container.v1.ClientCertificateConfig.decode(reader, reader.uint32());
- break;
- case 100:
- message.clusterCaCertificate = reader.string();
- break;
- case 101:
- message.clientCertificate = reader.string();
- break;
- case 102:
- message.clientKey = reader.string();
+ if (!(message.values && message.values.length))
+ message.values = [];
+ message.values.push(reader.string());
break;
default:
reader.skipType(tag & 7);
@@ -2420,153 +2481,180 @@
};
/**
- * Decodes a MasterAuth message from the specified reader or buffer, length delimited.
+ * Decodes a ReservationAffinity message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.MasterAuth
+ * @memberof google.container.v1.ReservationAffinity
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.MasterAuth} MasterAuth
+ * @returns {google.container.v1.ReservationAffinity} ReservationAffinity
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- MasterAuth.decodeDelimited = function decodeDelimited(reader) {
+ ReservationAffinity.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a MasterAuth message.
+ * Verifies a ReservationAffinity message.
* @function verify
- * @memberof google.container.v1.MasterAuth
+ * @memberof google.container.v1.ReservationAffinity
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- MasterAuth.verify = function verify(message) {
+ ReservationAffinity.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.username != null && message.hasOwnProperty("username"))
- if (!$util.isString(message.username))
- return "username: string expected";
- if (message.password != null && message.hasOwnProperty("password"))
- if (!$util.isString(message.password))
- return "password: string expected";
- if (message.clientCertificateConfig != null && message.hasOwnProperty("clientCertificateConfig")) {
- var error = $root.google.container.v1.ClientCertificateConfig.verify(message.clientCertificateConfig);
- if (error)
- return "clientCertificateConfig." + error;
+ if (message.consumeReservationType != null && message.hasOwnProperty("consumeReservationType"))
+ switch (message.consumeReservationType) {
+ default:
+ return "consumeReservationType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.key != null && message.hasOwnProperty("key"))
+ if (!$util.isString(message.key))
+ return "key: string expected";
+ if (message.values != null && message.hasOwnProperty("values")) {
+ if (!Array.isArray(message.values))
+ return "values: array expected";
+ for (var i = 0; i < message.values.length; ++i)
+ if (!$util.isString(message.values[i]))
+ return "values: string[] expected";
}
- if (message.clusterCaCertificate != null && message.hasOwnProperty("clusterCaCertificate"))
- if (!$util.isString(message.clusterCaCertificate))
- return "clusterCaCertificate: string expected";
- if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate"))
- if (!$util.isString(message.clientCertificate))
- return "clientCertificate: string expected";
- if (message.clientKey != null && message.hasOwnProperty("clientKey"))
- if (!$util.isString(message.clientKey))
- return "clientKey: string expected";
return null;
};
/**
- * Creates a MasterAuth message from a plain object. Also converts values to their respective internal types.
+ * Creates a ReservationAffinity message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.MasterAuth
+ * @memberof google.container.v1.ReservationAffinity
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.MasterAuth} MasterAuth
+ * @returns {google.container.v1.ReservationAffinity} ReservationAffinity
*/
- MasterAuth.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.MasterAuth)
+ ReservationAffinity.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.ReservationAffinity)
return object;
- var message = new $root.google.container.v1.MasterAuth();
- if (object.username != null)
- message.username = String(object.username);
- if (object.password != null)
- message.password = String(object.password);
- if (object.clientCertificateConfig != null) {
- if (typeof object.clientCertificateConfig !== "object")
- throw TypeError(".google.container.v1.MasterAuth.clientCertificateConfig: object expected");
- message.clientCertificateConfig = $root.google.container.v1.ClientCertificateConfig.fromObject(object.clientCertificateConfig);
+ var message = new $root.google.container.v1.ReservationAffinity();
+ switch (object.consumeReservationType) {
+ case "UNSPECIFIED":
+ case 0:
+ message.consumeReservationType = 0;
+ break;
+ case "NO_RESERVATION":
+ case 1:
+ message.consumeReservationType = 1;
+ break;
+ case "ANY_RESERVATION":
+ case 2:
+ message.consumeReservationType = 2;
+ break;
+ case "SPECIFIC_RESERVATION":
+ case 3:
+ message.consumeReservationType = 3;
+ break;
+ }
+ if (object.key != null)
+ message.key = String(object.key);
+ if (object.values) {
+ if (!Array.isArray(object.values))
+ throw TypeError(".google.container.v1.ReservationAffinity.values: array expected");
+ message.values = [];
+ for (var i = 0; i < object.values.length; ++i)
+ message.values[i] = String(object.values[i]);
}
- if (object.clusterCaCertificate != null)
- message.clusterCaCertificate = String(object.clusterCaCertificate);
- if (object.clientCertificate != null)
- message.clientCertificate = String(object.clientCertificate);
- if (object.clientKey != null)
- message.clientKey = String(object.clientKey);
return message;
};
/**
- * Creates a plain object from a MasterAuth message. Also converts values to other types if specified.
+ * Creates a plain object from a ReservationAffinity message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.MasterAuth
+ * @memberof google.container.v1.ReservationAffinity
* @static
- * @param {google.container.v1.MasterAuth} message MasterAuth
+ * @param {google.container.v1.ReservationAffinity} message ReservationAffinity
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- MasterAuth.toObject = function toObject(message, options) {
+ ReservationAffinity.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
+ if (options.arrays || options.defaults)
+ object.values = [];
if (options.defaults) {
- object.username = "";
- object.password = "";
- object.clientCertificateConfig = null;
- object.clusterCaCertificate = "";
- object.clientCertificate = "";
- object.clientKey = "";
+ object.consumeReservationType = options.enums === String ? "UNSPECIFIED" : 0;
+ object.key = "";
+ }
+ if (message.consumeReservationType != null && message.hasOwnProperty("consumeReservationType"))
+ object.consumeReservationType = options.enums === String ? $root.google.container.v1.ReservationAffinity.Type[message.consumeReservationType] : message.consumeReservationType;
+ if (message.key != null && message.hasOwnProperty("key"))
+ object.key = message.key;
+ if (message.values && message.values.length) {
+ object.values = [];
+ for (var j = 0; j < message.values.length; ++j)
+ object.values[j] = message.values[j];
}
- if (message.username != null && message.hasOwnProperty("username"))
- object.username = message.username;
- if (message.password != null && message.hasOwnProperty("password"))
- object.password = message.password;
- if (message.clientCertificateConfig != null && message.hasOwnProperty("clientCertificateConfig"))
- object.clientCertificateConfig = $root.google.container.v1.ClientCertificateConfig.toObject(message.clientCertificateConfig, options);
- if (message.clusterCaCertificate != null && message.hasOwnProperty("clusterCaCertificate"))
- object.clusterCaCertificate = message.clusterCaCertificate;
- if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate"))
- object.clientCertificate = message.clientCertificate;
- if (message.clientKey != null && message.hasOwnProperty("clientKey"))
- object.clientKey = message.clientKey;
return object;
};
/**
- * Converts this MasterAuth to JSON.
+ * Converts this ReservationAffinity to JSON.
* @function toJSON
- * @memberof google.container.v1.MasterAuth
+ * @memberof google.container.v1.ReservationAffinity
* @instance
* @returns {Object.} JSON object
*/
- MasterAuth.prototype.toJSON = function toJSON() {
+ ReservationAffinity.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return MasterAuth;
+ /**
+ * Type enum.
+ * @name google.container.v1.ReservationAffinity.Type
+ * @enum {number}
+ * @property {number} UNSPECIFIED=0 UNSPECIFIED value
+ * @property {number} NO_RESERVATION=1 NO_RESERVATION value
+ * @property {number} ANY_RESERVATION=2 ANY_RESERVATION value
+ * @property {number} SPECIFIC_RESERVATION=3 SPECIFIC_RESERVATION value
+ */
+ ReservationAffinity.Type = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "UNSPECIFIED"] = 0;
+ values[valuesById[1] = "NO_RESERVATION"] = 1;
+ values[valuesById[2] = "ANY_RESERVATION"] = 2;
+ values[valuesById[3] = "SPECIFIC_RESERVATION"] = 3;
+ return values;
+ })();
+
+ return ReservationAffinity;
})();
- v1.ClientCertificateConfig = (function() {
+ v1.NodeTaint = (function() {
/**
- * Properties of a ClientCertificateConfig.
+ * Properties of a NodeTaint.
* @memberof google.container.v1
- * @interface IClientCertificateConfig
- * @property {boolean|null} [issueClientCertificate] ClientCertificateConfig issueClientCertificate
+ * @interface INodeTaint
+ * @property {string|null} [key] NodeTaint key
+ * @property {string|null} [value] NodeTaint value
+ * @property {google.container.v1.NodeTaint.Effect|null} [effect] NodeTaint effect
*/
/**
- * Constructs a new ClientCertificateConfig.
+ * Constructs a new NodeTaint.
* @memberof google.container.v1
- * @classdesc Represents a ClientCertificateConfig.
- * @implements IClientCertificateConfig
+ * @classdesc Represents a NodeTaint.
+ * @implements INodeTaint
* @constructor
- * @param {google.container.v1.IClientCertificateConfig=} [properties] Properties to set
+ * @param {google.container.v1.INodeTaint=} [properties] Properties to set
*/
- function ClientCertificateConfig(properties) {
+ function NodeTaint(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -2574,75 +2662,101 @@
}
/**
- * ClientCertificateConfig issueClientCertificate.
- * @member {boolean} issueClientCertificate
- * @memberof google.container.v1.ClientCertificateConfig
+ * NodeTaint key.
+ * @member {string} key
+ * @memberof google.container.v1.NodeTaint
* @instance
*/
- ClientCertificateConfig.prototype.issueClientCertificate = false;
+ NodeTaint.prototype.key = "";
/**
- * Creates a new ClientCertificateConfig instance using the specified properties.
+ * NodeTaint value.
+ * @member {string} value
+ * @memberof google.container.v1.NodeTaint
+ * @instance
+ */
+ NodeTaint.prototype.value = "";
+
+ /**
+ * NodeTaint effect.
+ * @member {google.container.v1.NodeTaint.Effect} effect
+ * @memberof google.container.v1.NodeTaint
+ * @instance
+ */
+ NodeTaint.prototype.effect = 0;
+
+ /**
+ * Creates a new NodeTaint instance using the specified properties.
* @function create
- * @memberof google.container.v1.ClientCertificateConfig
+ * @memberof google.container.v1.NodeTaint
* @static
- * @param {google.container.v1.IClientCertificateConfig=} [properties] Properties to set
- * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig instance
+ * @param {google.container.v1.INodeTaint=} [properties] Properties to set
+ * @returns {google.container.v1.NodeTaint} NodeTaint instance
*/
- ClientCertificateConfig.create = function create(properties) {
- return new ClientCertificateConfig(properties);
+ NodeTaint.create = function create(properties) {
+ return new NodeTaint(properties);
};
/**
- * Encodes the specified ClientCertificateConfig message. Does not implicitly {@link google.container.v1.ClientCertificateConfig.verify|verify} messages.
+ * Encodes the specified NodeTaint message. Does not implicitly {@link google.container.v1.NodeTaint.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.ClientCertificateConfig
+ * @memberof google.container.v1.NodeTaint
* @static
- * @param {google.container.v1.IClientCertificateConfig} message ClientCertificateConfig message or plain object to encode
+ * @param {google.container.v1.INodeTaint} message NodeTaint message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- ClientCertificateConfig.encode = function encode(message, writer) {
+ NodeTaint.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.issueClientCertificate != null && Object.hasOwnProperty.call(message, "issueClientCertificate"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.issueClientCertificate);
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
+ if (message.effect != null && Object.hasOwnProperty.call(message, "effect"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.effect);
return writer;
};
/**
- * Encodes the specified ClientCertificateConfig message, length delimited. Does not implicitly {@link google.container.v1.ClientCertificateConfig.verify|verify} messages.
+ * Encodes the specified NodeTaint message, length delimited. Does not implicitly {@link google.container.v1.NodeTaint.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.ClientCertificateConfig
+ * @memberof google.container.v1.NodeTaint
* @static
- * @param {google.container.v1.IClientCertificateConfig} message ClientCertificateConfig message or plain object to encode
+ * @param {google.container.v1.INodeTaint} message NodeTaint message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- ClientCertificateConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ NodeTaint.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a ClientCertificateConfig message from the specified reader or buffer.
+ * Decodes a NodeTaint message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.ClientCertificateConfig
+ * @memberof google.container.v1.NodeTaint
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig
+ * @returns {google.container.v1.NodeTaint} NodeTaint
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- ClientCertificateConfig.decode = function decode(reader, length) {
+ NodeTaint.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.ClientCertificateConfig();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodeTaint();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.issueClientCertificate = reader.bool();
+ message.key = reader.string();
+ break;
+ case 2:
+ message.value = reader.string();
+ break;
+ case 3:
+ message.effect = reader.int32();
break;
default:
reader.skipType(tag & 7);
@@ -2653,111 +2767,170 @@
};
/**
- * Decodes a ClientCertificateConfig message from the specified reader or buffer, length delimited.
+ * Decodes a NodeTaint message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.ClientCertificateConfig
+ * @memberof google.container.v1.NodeTaint
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig
+ * @returns {google.container.v1.NodeTaint} NodeTaint
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- ClientCertificateConfig.decodeDelimited = function decodeDelimited(reader) {
+ NodeTaint.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a ClientCertificateConfig message.
+ * Verifies a NodeTaint message.
* @function verify
- * @memberof google.container.v1.ClientCertificateConfig
+ * @memberof google.container.v1.NodeTaint
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- ClientCertificateConfig.verify = function verify(message) {
+ NodeTaint.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.issueClientCertificate != null && message.hasOwnProperty("issueClientCertificate"))
- if (typeof message.issueClientCertificate !== "boolean")
- return "issueClientCertificate: boolean expected";
+ if (message.key != null && message.hasOwnProperty("key"))
+ if (!$util.isString(message.key))
+ return "key: string expected";
+ if (message.value != null && message.hasOwnProperty("value"))
+ if (!$util.isString(message.value))
+ return "value: string expected";
+ if (message.effect != null && message.hasOwnProperty("effect"))
+ switch (message.effect) {
+ default:
+ return "effect: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
return null;
};
/**
- * Creates a ClientCertificateConfig message from a plain object. Also converts values to their respective internal types.
+ * Creates a NodeTaint message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.ClientCertificateConfig
+ * @memberof google.container.v1.NodeTaint
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig
+ * @returns {google.container.v1.NodeTaint} NodeTaint
*/
- ClientCertificateConfig.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.ClientCertificateConfig)
+ NodeTaint.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.NodeTaint)
return object;
- var message = new $root.google.container.v1.ClientCertificateConfig();
- if (object.issueClientCertificate != null)
- message.issueClientCertificate = Boolean(object.issueClientCertificate);
+ var message = new $root.google.container.v1.NodeTaint();
+ if (object.key != null)
+ message.key = String(object.key);
+ if (object.value != null)
+ message.value = String(object.value);
+ switch (object.effect) {
+ case "EFFECT_UNSPECIFIED":
+ case 0:
+ message.effect = 0;
+ break;
+ case "NO_SCHEDULE":
+ case 1:
+ message.effect = 1;
+ break;
+ case "PREFER_NO_SCHEDULE":
+ case 2:
+ message.effect = 2;
+ break;
+ case "NO_EXECUTE":
+ case 3:
+ message.effect = 3;
+ break;
+ }
return message;
};
/**
- * Creates a plain object from a ClientCertificateConfig message. Also converts values to other types if specified.
+ * Creates a plain object from a NodeTaint message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.ClientCertificateConfig
+ * @memberof google.container.v1.NodeTaint
* @static
- * @param {google.container.v1.ClientCertificateConfig} message ClientCertificateConfig
+ * @param {google.container.v1.NodeTaint} message NodeTaint
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- ClientCertificateConfig.toObject = function toObject(message, options) {
+ NodeTaint.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.defaults)
- object.issueClientCertificate = false;
- if (message.issueClientCertificate != null && message.hasOwnProperty("issueClientCertificate"))
- object.issueClientCertificate = message.issueClientCertificate;
+ if (options.defaults) {
+ object.key = "";
+ object.value = "";
+ object.effect = options.enums === String ? "EFFECT_UNSPECIFIED" : 0;
+ }
+ if (message.key != null && message.hasOwnProperty("key"))
+ object.key = message.key;
+ if (message.value != null && message.hasOwnProperty("value"))
+ object.value = message.value;
+ if (message.effect != null && message.hasOwnProperty("effect"))
+ object.effect = options.enums === String ? $root.google.container.v1.NodeTaint.Effect[message.effect] : message.effect;
return object;
};
/**
- * Converts this ClientCertificateConfig to JSON.
+ * Converts this NodeTaint to JSON.
* @function toJSON
- * @memberof google.container.v1.ClientCertificateConfig
+ * @memberof google.container.v1.NodeTaint
* @instance
* @returns {Object.} JSON object
*/
- ClientCertificateConfig.prototype.toJSON = function toJSON() {
+ NodeTaint.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return ClientCertificateConfig;
+ /**
+ * Effect enum.
+ * @name google.container.v1.NodeTaint.Effect
+ * @enum {number}
+ * @property {number} EFFECT_UNSPECIFIED=0 EFFECT_UNSPECIFIED value
+ * @property {number} NO_SCHEDULE=1 NO_SCHEDULE value
+ * @property {number} PREFER_NO_SCHEDULE=2 PREFER_NO_SCHEDULE value
+ * @property {number} NO_EXECUTE=3 NO_EXECUTE value
+ */
+ NodeTaint.Effect = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "EFFECT_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "NO_SCHEDULE"] = 1;
+ values[valuesById[2] = "PREFER_NO_SCHEDULE"] = 2;
+ values[valuesById[3] = "NO_EXECUTE"] = 3;
+ return values;
+ })();
+
+ return NodeTaint;
})();
- v1.AddonsConfig = (function() {
+ v1.MasterAuth = (function() {
/**
- * Properties of an AddonsConfig.
+ * Properties of a MasterAuth.
* @memberof google.container.v1
- * @interface IAddonsConfig
- * @property {google.container.v1.IHttpLoadBalancing|null} [httpLoadBalancing] AddonsConfig httpLoadBalancing
- * @property {google.container.v1.IHorizontalPodAutoscaling|null} [horizontalPodAutoscaling] AddonsConfig horizontalPodAutoscaling
- * @property {google.container.v1.IKubernetesDashboard|null} [kubernetesDashboard] AddonsConfig kubernetesDashboard
- * @property {google.container.v1.INetworkPolicyConfig|null} [networkPolicyConfig] AddonsConfig networkPolicyConfig
- * @property {google.container.v1.ICloudRunConfig|null} [cloudRunConfig] AddonsConfig cloudRunConfig
+ * @interface IMasterAuth
+ * @property {string|null} [username] MasterAuth username
+ * @property {string|null} [password] MasterAuth password
+ * @property {google.container.v1.IClientCertificateConfig|null} [clientCertificateConfig] MasterAuth clientCertificateConfig
+ * @property {string|null} [clusterCaCertificate] MasterAuth clusterCaCertificate
+ * @property {string|null} [clientCertificate] MasterAuth clientCertificate
+ * @property {string|null} [clientKey] MasterAuth clientKey
*/
/**
- * Constructs a new AddonsConfig.
+ * Constructs a new MasterAuth.
* @memberof google.container.v1
- * @classdesc Represents an AddonsConfig.
- * @implements IAddonsConfig
+ * @classdesc Represents a MasterAuth.
+ * @implements IMasterAuth
* @constructor
- * @param {google.container.v1.IAddonsConfig=} [properties] Properties to set
+ * @param {google.container.v1.IMasterAuth=} [properties] Properties to set
*/
- function AddonsConfig(properties) {
+ function MasterAuth(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -2765,127 +2938,140 @@
}
/**
- * AddonsConfig httpLoadBalancing.
- * @member {google.container.v1.IHttpLoadBalancing|null|undefined} httpLoadBalancing
- * @memberof google.container.v1.AddonsConfig
+ * MasterAuth username.
+ * @member {string} username
+ * @memberof google.container.v1.MasterAuth
* @instance
*/
- AddonsConfig.prototype.httpLoadBalancing = null;
+ MasterAuth.prototype.username = "";
/**
- * AddonsConfig horizontalPodAutoscaling.
- * @member {google.container.v1.IHorizontalPodAutoscaling|null|undefined} horizontalPodAutoscaling
- * @memberof google.container.v1.AddonsConfig
+ * MasterAuth password.
+ * @member {string} password
+ * @memberof google.container.v1.MasterAuth
* @instance
*/
- AddonsConfig.prototype.horizontalPodAutoscaling = null;
+ MasterAuth.prototype.password = "";
/**
- * AddonsConfig kubernetesDashboard.
- * @member {google.container.v1.IKubernetesDashboard|null|undefined} kubernetesDashboard
- * @memberof google.container.v1.AddonsConfig
+ * MasterAuth clientCertificateConfig.
+ * @member {google.container.v1.IClientCertificateConfig|null|undefined} clientCertificateConfig
+ * @memberof google.container.v1.MasterAuth
* @instance
*/
- AddonsConfig.prototype.kubernetesDashboard = null;
+ MasterAuth.prototype.clientCertificateConfig = null;
/**
- * AddonsConfig networkPolicyConfig.
- * @member {google.container.v1.INetworkPolicyConfig|null|undefined} networkPolicyConfig
- * @memberof google.container.v1.AddonsConfig
+ * MasterAuth clusterCaCertificate.
+ * @member {string} clusterCaCertificate
+ * @memberof google.container.v1.MasterAuth
* @instance
*/
- AddonsConfig.prototype.networkPolicyConfig = null;
+ MasterAuth.prototype.clusterCaCertificate = "";
/**
- * AddonsConfig cloudRunConfig.
- * @member {google.container.v1.ICloudRunConfig|null|undefined} cloudRunConfig
- * @memberof google.container.v1.AddonsConfig
+ * MasterAuth clientCertificate.
+ * @member {string} clientCertificate
+ * @memberof google.container.v1.MasterAuth
* @instance
*/
- AddonsConfig.prototype.cloudRunConfig = null;
+ MasterAuth.prototype.clientCertificate = "";
/**
- * Creates a new AddonsConfig instance using the specified properties.
+ * MasterAuth clientKey.
+ * @member {string} clientKey
+ * @memberof google.container.v1.MasterAuth
+ * @instance
+ */
+ MasterAuth.prototype.clientKey = "";
+
+ /**
+ * Creates a new MasterAuth instance using the specified properties.
* @function create
- * @memberof google.container.v1.AddonsConfig
+ * @memberof google.container.v1.MasterAuth
* @static
- * @param {google.container.v1.IAddonsConfig=} [properties] Properties to set
- * @returns {google.container.v1.AddonsConfig} AddonsConfig instance
+ * @param {google.container.v1.IMasterAuth=} [properties] Properties to set
+ * @returns {google.container.v1.MasterAuth} MasterAuth instance
*/
- AddonsConfig.create = function create(properties) {
- return new AddonsConfig(properties);
+ MasterAuth.create = function create(properties) {
+ return new MasterAuth(properties);
};
/**
- * Encodes the specified AddonsConfig message. Does not implicitly {@link google.container.v1.AddonsConfig.verify|verify} messages.
+ * Encodes the specified MasterAuth message. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.AddonsConfig
+ * @memberof google.container.v1.MasterAuth
* @static
- * @param {google.container.v1.IAddonsConfig} message AddonsConfig message or plain object to encode
+ * @param {google.container.v1.IMasterAuth} message MasterAuth message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- AddonsConfig.encode = function encode(message, writer) {
+ MasterAuth.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.httpLoadBalancing != null && Object.hasOwnProperty.call(message, "httpLoadBalancing"))
- $root.google.container.v1.HttpLoadBalancing.encode(message.httpLoadBalancing, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
- if (message.horizontalPodAutoscaling != null && Object.hasOwnProperty.call(message, "horizontalPodAutoscaling"))
- $root.google.container.v1.HorizontalPodAutoscaling.encode(message.horizontalPodAutoscaling, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
- if (message.kubernetesDashboard != null && Object.hasOwnProperty.call(message, "kubernetesDashboard"))
- $root.google.container.v1.KubernetesDashboard.encode(message.kubernetesDashboard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- if (message.networkPolicyConfig != null && Object.hasOwnProperty.call(message, "networkPolicyConfig"))
- $root.google.container.v1.NetworkPolicyConfig.encode(message.networkPolicyConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
- if (message.cloudRunConfig != null && Object.hasOwnProperty.call(message, "cloudRunConfig"))
- $root.google.container.v1.CloudRunConfig.encode(message.cloudRunConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.username != null && Object.hasOwnProperty.call(message, "username"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.username);
+ if (message.password != null && Object.hasOwnProperty.call(message, "password"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.password);
+ if (message.clientCertificateConfig != null && Object.hasOwnProperty.call(message, "clientCertificateConfig"))
+ $root.google.container.v1.ClientCertificateConfig.encode(message.clientCertificateConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.clusterCaCertificate != null && Object.hasOwnProperty.call(message, "clusterCaCertificate"))
+ writer.uint32(/* id 100, wireType 2 =*/802).string(message.clusterCaCertificate);
+ if (message.clientCertificate != null && Object.hasOwnProperty.call(message, "clientCertificate"))
+ writer.uint32(/* id 101, wireType 2 =*/810).string(message.clientCertificate);
+ if (message.clientKey != null && Object.hasOwnProperty.call(message, "clientKey"))
+ writer.uint32(/* id 102, wireType 2 =*/818).string(message.clientKey);
return writer;
};
/**
- * Encodes the specified AddonsConfig message, length delimited. Does not implicitly {@link google.container.v1.AddonsConfig.verify|verify} messages.
+ * Encodes the specified MasterAuth message, length delimited. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.AddonsConfig
+ * @memberof google.container.v1.MasterAuth
* @static
- * @param {google.container.v1.IAddonsConfig} message AddonsConfig message or plain object to encode
+ * @param {google.container.v1.IMasterAuth} message MasterAuth message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- AddonsConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ MasterAuth.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes an AddonsConfig message from the specified reader or buffer.
+ * Decodes a MasterAuth message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.AddonsConfig
+ * @memberof google.container.v1.MasterAuth
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.AddonsConfig} AddonsConfig
+ * @returns {google.container.v1.MasterAuth} MasterAuth
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- AddonsConfig.decode = function decode(reader, length) {
+ MasterAuth.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.AddonsConfig();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MasterAuth();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.decode(reader, reader.uint32());
+ message.username = reader.string();
break;
case 2:
- message.horizontalPodAutoscaling = $root.google.container.v1.HorizontalPodAutoscaling.decode(reader, reader.uint32());
+ message.password = reader.string();
break;
case 3:
- message.kubernetesDashboard = $root.google.container.v1.KubernetesDashboard.decode(reader, reader.uint32());
+ message.clientCertificateConfig = $root.google.container.v1.ClientCertificateConfig.decode(reader, reader.uint32());
break;
- case 4:
- message.networkPolicyConfig = $root.google.container.v1.NetworkPolicyConfig.decode(reader, reader.uint32());
+ case 100:
+ message.clusterCaCertificate = reader.string();
break;
- case 7:
- message.cloudRunConfig = $root.google.container.v1.CloudRunConfig.decode(reader, reader.uint32());
+ case 101:
+ message.clientCertificate = reader.string();
+ break;
+ case 102:
+ message.clientKey = reader.string();
break;
default:
reader.skipType(tag & 7);
@@ -2896,165 +3082,153 @@
};
/**
- * Decodes an AddonsConfig message from the specified reader or buffer, length delimited.
+ * Decodes a MasterAuth message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.AddonsConfig
+ * @memberof google.container.v1.MasterAuth
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.AddonsConfig} AddonsConfig
+ * @returns {google.container.v1.MasterAuth} MasterAuth
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- AddonsConfig.decodeDelimited = function decodeDelimited(reader) {
+ MasterAuth.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies an AddonsConfig message.
+ * Verifies a MasterAuth message.
* @function verify
- * @memberof google.container.v1.AddonsConfig
+ * @memberof google.container.v1.MasterAuth
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- AddonsConfig.verify = function verify(message) {
+ MasterAuth.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing")) {
- var error = $root.google.container.v1.HttpLoadBalancing.verify(message.httpLoadBalancing);
- if (error)
- return "httpLoadBalancing." + error;
- }
- if (message.horizontalPodAutoscaling != null && message.hasOwnProperty("horizontalPodAutoscaling")) {
- var error = $root.google.container.v1.HorizontalPodAutoscaling.verify(message.horizontalPodAutoscaling);
- if (error)
- return "horizontalPodAutoscaling." + error;
- }
- if (message.kubernetesDashboard != null && message.hasOwnProperty("kubernetesDashboard")) {
- var error = $root.google.container.v1.KubernetesDashboard.verify(message.kubernetesDashboard);
- if (error)
- return "kubernetesDashboard." + error;
- }
- if (message.networkPolicyConfig != null && message.hasOwnProperty("networkPolicyConfig")) {
- var error = $root.google.container.v1.NetworkPolicyConfig.verify(message.networkPolicyConfig);
- if (error)
- return "networkPolicyConfig." + error;
- }
- if (message.cloudRunConfig != null && message.hasOwnProperty("cloudRunConfig")) {
- var error = $root.google.container.v1.CloudRunConfig.verify(message.cloudRunConfig);
+ if (message.username != null && message.hasOwnProperty("username"))
+ if (!$util.isString(message.username))
+ return "username: string expected";
+ if (message.password != null && message.hasOwnProperty("password"))
+ if (!$util.isString(message.password))
+ return "password: string expected";
+ if (message.clientCertificateConfig != null && message.hasOwnProperty("clientCertificateConfig")) {
+ var error = $root.google.container.v1.ClientCertificateConfig.verify(message.clientCertificateConfig);
if (error)
- return "cloudRunConfig." + error;
+ return "clientCertificateConfig." + error;
}
+ if (message.clusterCaCertificate != null && message.hasOwnProperty("clusterCaCertificate"))
+ if (!$util.isString(message.clusterCaCertificate))
+ return "clusterCaCertificate: string expected";
+ if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate"))
+ if (!$util.isString(message.clientCertificate))
+ return "clientCertificate: string expected";
+ if (message.clientKey != null && message.hasOwnProperty("clientKey"))
+ if (!$util.isString(message.clientKey))
+ return "clientKey: string expected";
return null;
};
/**
- * Creates an AddonsConfig message from a plain object. Also converts values to their respective internal types.
+ * Creates a MasterAuth message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.AddonsConfig
+ * @memberof google.container.v1.MasterAuth
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.AddonsConfig} AddonsConfig
+ * @returns {google.container.v1.MasterAuth} MasterAuth
*/
- AddonsConfig.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.AddonsConfig)
+ MasterAuth.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.MasterAuth)
return object;
- var message = new $root.google.container.v1.AddonsConfig();
- if (object.httpLoadBalancing != null) {
- if (typeof object.httpLoadBalancing !== "object")
- throw TypeError(".google.container.v1.AddonsConfig.httpLoadBalancing: object expected");
- message.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.fromObject(object.httpLoadBalancing);
- }
- if (object.horizontalPodAutoscaling != null) {
- if (typeof object.horizontalPodAutoscaling !== "object")
- throw TypeError(".google.container.v1.AddonsConfig.horizontalPodAutoscaling: object expected");
- message.horizontalPodAutoscaling = $root.google.container.v1.HorizontalPodAutoscaling.fromObject(object.horizontalPodAutoscaling);
- }
- if (object.kubernetesDashboard != null) {
- if (typeof object.kubernetesDashboard !== "object")
- throw TypeError(".google.container.v1.AddonsConfig.kubernetesDashboard: object expected");
- message.kubernetesDashboard = $root.google.container.v1.KubernetesDashboard.fromObject(object.kubernetesDashboard);
- }
- if (object.networkPolicyConfig != null) {
- if (typeof object.networkPolicyConfig !== "object")
- throw TypeError(".google.container.v1.AddonsConfig.networkPolicyConfig: object expected");
- message.networkPolicyConfig = $root.google.container.v1.NetworkPolicyConfig.fromObject(object.networkPolicyConfig);
- }
- if (object.cloudRunConfig != null) {
- if (typeof object.cloudRunConfig !== "object")
- throw TypeError(".google.container.v1.AddonsConfig.cloudRunConfig: object expected");
- message.cloudRunConfig = $root.google.container.v1.CloudRunConfig.fromObject(object.cloudRunConfig);
+ var message = new $root.google.container.v1.MasterAuth();
+ if (object.username != null)
+ message.username = String(object.username);
+ if (object.password != null)
+ message.password = String(object.password);
+ if (object.clientCertificateConfig != null) {
+ if (typeof object.clientCertificateConfig !== "object")
+ throw TypeError(".google.container.v1.MasterAuth.clientCertificateConfig: object expected");
+ message.clientCertificateConfig = $root.google.container.v1.ClientCertificateConfig.fromObject(object.clientCertificateConfig);
}
+ if (object.clusterCaCertificate != null)
+ message.clusterCaCertificate = String(object.clusterCaCertificate);
+ if (object.clientCertificate != null)
+ message.clientCertificate = String(object.clientCertificate);
+ if (object.clientKey != null)
+ message.clientKey = String(object.clientKey);
return message;
};
/**
- * Creates a plain object from an AddonsConfig message. Also converts values to other types if specified.
+ * Creates a plain object from a MasterAuth message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.AddonsConfig
+ * @memberof google.container.v1.MasterAuth
* @static
- * @param {google.container.v1.AddonsConfig} message AddonsConfig
+ * @param {google.container.v1.MasterAuth} message MasterAuth
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- AddonsConfig.toObject = function toObject(message, options) {
+ MasterAuth.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
- object.httpLoadBalancing = null;
- object.horizontalPodAutoscaling = null;
- object.kubernetesDashboard = null;
- object.networkPolicyConfig = null;
- object.cloudRunConfig = null;
+ object.username = "";
+ object.password = "";
+ object.clientCertificateConfig = null;
+ object.clusterCaCertificate = "";
+ object.clientCertificate = "";
+ object.clientKey = "";
}
- if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing"))
- object.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.toObject(message.httpLoadBalancing, options);
- if (message.horizontalPodAutoscaling != null && message.hasOwnProperty("horizontalPodAutoscaling"))
- object.horizontalPodAutoscaling = $root.google.container.v1.HorizontalPodAutoscaling.toObject(message.horizontalPodAutoscaling, options);
- if (message.kubernetesDashboard != null && message.hasOwnProperty("kubernetesDashboard"))
- object.kubernetesDashboard = $root.google.container.v1.KubernetesDashboard.toObject(message.kubernetesDashboard, options);
- if (message.networkPolicyConfig != null && message.hasOwnProperty("networkPolicyConfig"))
- object.networkPolicyConfig = $root.google.container.v1.NetworkPolicyConfig.toObject(message.networkPolicyConfig, options);
- if (message.cloudRunConfig != null && message.hasOwnProperty("cloudRunConfig"))
- object.cloudRunConfig = $root.google.container.v1.CloudRunConfig.toObject(message.cloudRunConfig, options);
+ if (message.username != null && message.hasOwnProperty("username"))
+ object.username = message.username;
+ if (message.password != null && message.hasOwnProperty("password"))
+ object.password = message.password;
+ if (message.clientCertificateConfig != null && message.hasOwnProperty("clientCertificateConfig"))
+ object.clientCertificateConfig = $root.google.container.v1.ClientCertificateConfig.toObject(message.clientCertificateConfig, options);
+ if (message.clusterCaCertificate != null && message.hasOwnProperty("clusterCaCertificate"))
+ object.clusterCaCertificate = message.clusterCaCertificate;
+ if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate"))
+ object.clientCertificate = message.clientCertificate;
+ if (message.clientKey != null && message.hasOwnProperty("clientKey"))
+ object.clientKey = message.clientKey;
return object;
};
/**
- * Converts this AddonsConfig to JSON.
+ * Converts this MasterAuth to JSON.
* @function toJSON
- * @memberof google.container.v1.AddonsConfig
+ * @memberof google.container.v1.MasterAuth
* @instance
* @returns {Object.} JSON object
*/
- AddonsConfig.prototype.toJSON = function toJSON() {
+ MasterAuth.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return AddonsConfig;
+ return MasterAuth;
})();
- v1.HttpLoadBalancing = (function() {
+ v1.ClientCertificateConfig = (function() {
/**
- * Properties of a HttpLoadBalancing.
+ * Properties of a ClientCertificateConfig.
* @memberof google.container.v1
- * @interface IHttpLoadBalancing
- * @property {boolean|null} [disabled] HttpLoadBalancing disabled
+ * @interface IClientCertificateConfig
+ * @property {boolean|null} [issueClientCertificate] ClientCertificateConfig issueClientCertificate
*/
/**
- * Constructs a new HttpLoadBalancing.
+ * Constructs a new ClientCertificateConfig.
* @memberof google.container.v1
- * @classdesc Represents a HttpLoadBalancing.
- * @implements IHttpLoadBalancing
+ * @classdesc Represents a ClientCertificateConfig.
+ * @implements IClientCertificateConfig
* @constructor
- * @param {google.container.v1.IHttpLoadBalancing=} [properties] Properties to set
+ * @param {google.container.v1.IClientCertificateConfig=} [properties] Properties to set
*/
- function HttpLoadBalancing(properties) {
+ function ClientCertificateConfig(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -3062,75 +3236,75 @@
}
/**
- * HttpLoadBalancing disabled.
- * @member {boolean} disabled
- * @memberof google.container.v1.HttpLoadBalancing
+ * ClientCertificateConfig issueClientCertificate.
+ * @member {boolean} issueClientCertificate
+ * @memberof google.container.v1.ClientCertificateConfig
* @instance
*/
- HttpLoadBalancing.prototype.disabled = false;
+ ClientCertificateConfig.prototype.issueClientCertificate = false;
/**
- * Creates a new HttpLoadBalancing instance using the specified properties.
+ * Creates a new ClientCertificateConfig instance using the specified properties.
* @function create
- * @memberof google.container.v1.HttpLoadBalancing
+ * @memberof google.container.v1.ClientCertificateConfig
* @static
- * @param {google.container.v1.IHttpLoadBalancing=} [properties] Properties to set
- * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing instance
+ * @param {google.container.v1.IClientCertificateConfig=} [properties] Properties to set
+ * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig instance
*/
- HttpLoadBalancing.create = function create(properties) {
- return new HttpLoadBalancing(properties);
+ ClientCertificateConfig.create = function create(properties) {
+ return new ClientCertificateConfig(properties);
};
/**
- * Encodes the specified HttpLoadBalancing message. Does not implicitly {@link google.container.v1.HttpLoadBalancing.verify|verify} messages.
+ * Encodes the specified ClientCertificateConfig message. Does not implicitly {@link google.container.v1.ClientCertificateConfig.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.HttpLoadBalancing
+ * @memberof google.container.v1.ClientCertificateConfig
* @static
- * @param {google.container.v1.IHttpLoadBalancing} message HttpLoadBalancing message or plain object to encode
+ * @param {google.container.v1.IClientCertificateConfig} message ClientCertificateConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- HttpLoadBalancing.encode = function encode(message, writer) {
+ ClientCertificateConfig.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled);
+ if (message.issueClientCertificate != null && Object.hasOwnProperty.call(message, "issueClientCertificate"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.issueClientCertificate);
return writer;
};
/**
- * Encodes the specified HttpLoadBalancing message, length delimited. Does not implicitly {@link google.container.v1.HttpLoadBalancing.verify|verify} messages.
+ * Encodes the specified ClientCertificateConfig message, length delimited. Does not implicitly {@link google.container.v1.ClientCertificateConfig.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.HttpLoadBalancing
+ * @memberof google.container.v1.ClientCertificateConfig
* @static
- * @param {google.container.v1.IHttpLoadBalancing} message HttpLoadBalancing message or plain object to encode
+ * @param {google.container.v1.IClientCertificateConfig} message ClientCertificateConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- HttpLoadBalancing.encodeDelimited = function encodeDelimited(message, writer) {
+ ClientCertificateConfig.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a HttpLoadBalancing message from the specified reader or buffer.
+ * Decodes a ClientCertificateConfig message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.HttpLoadBalancing
+ * @memberof google.container.v1.ClientCertificateConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing
+ * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- HttpLoadBalancing.decode = function decode(reader, length) {
+ ClientCertificateConfig.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.HttpLoadBalancing();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ClientCertificateConfig();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.disabled = reader.bool();
+ message.issueClientCertificate = reader.bool();
break;
default:
reader.skipType(tag & 7);
@@ -3141,107 +3315,113 @@
};
/**
- * Decodes a HttpLoadBalancing message from the specified reader or buffer, length delimited.
+ * Decodes a ClientCertificateConfig message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.HttpLoadBalancing
+ * @memberof google.container.v1.ClientCertificateConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing
+ * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- HttpLoadBalancing.decodeDelimited = function decodeDelimited(reader) {
+ ClientCertificateConfig.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a HttpLoadBalancing message.
+ * Verifies a ClientCertificateConfig message.
* @function verify
- * @memberof google.container.v1.HttpLoadBalancing
+ * @memberof google.container.v1.ClientCertificateConfig
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- HttpLoadBalancing.verify = function verify(message) {
+ ClientCertificateConfig.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.disabled != null && message.hasOwnProperty("disabled"))
- if (typeof message.disabled !== "boolean")
- return "disabled: boolean expected";
+ if (message.issueClientCertificate != null && message.hasOwnProperty("issueClientCertificate"))
+ if (typeof message.issueClientCertificate !== "boolean")
+ return "issueClientCertificate: boolean expected";
return null;
};
/**
- * Creates a HttpLoadBalancing message from a plain object. Also converts values to their respective internal types.
+ * Creates a ClientCertificateConfig message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.HttpLoadBalancing
+ * @memberof google.container.v1.ClientCertificateConfig
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing
+ * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig
*/
- HttpLoadBalancing.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.HttpLoadBalancing)
+ ClientCertificateConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.ClientCertificateConfig)
return object;
- var message = new $root.google.container.v1.HttpLoadBalancing();
- if (object.disabled != null)
- message.disabled = Boolean(object.disabled);
+ var message = new $root.google.container.v1.ClientCertificateConfig();
+ if (object.issueClientCertificate != null)
+ message.issueClientCertificate = Boolean(object.issueClientCertificate);
return message;
};
/**
- * Creates a plain object from a HttpLoadBalancing message. Also converts values to other types if specified.
+ * Creates a plain object from a ClientCertificateConfig message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.HttpLoadBalancing
+ * @memberof google.container.v1.ClientCertificateConfig
* @static
- * @param {google.container.v1.HttpLoadBalancing} message HttpLoadBalancing
+ * @param {google.container.v1.ClientCertificateConfig} message ClientCertificateConfig
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- HttpLoadBalancing.toObject = function toObject(message, options) {
+ ClientCertificateConfig.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults)
- object.disabled = false;
- if (message.disabled != null && message.hasOwnProperty("disabled"))
- object.disabled = message.disabled;
+ object.issueClientCertificate = false;
+ if (message.issueClientCertificate != null && message.hasOwnProperty("issueClientCertificate"))
+ object.issueClientCertificate = message.issueClientCertificate;
return object;
};
/**
- * Converts this HttpLoadBalancing to JSON.
+ * Converts this ClientCertificateConfig to JSON.
* @function toJSON
- * @memberof google.container.v1.HttpLoadBalancing
+ * @memberof google.container.v1.ClientCertificateConfig
* @instance
* @returns {Object.} JSON object
*/
- HttpLoadBalancing.prototype.toJSON = function toJSON() {
+ ClientCertificateConfig.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return HttpLoadBalancing;
+ return ClientCertificateConfig;
})();
- v1.HorizontalPodAutoscaling = (function() {
+ v1.AddonsConfig = (function() {
/**
- * Properties of a HorizontalPodAutoscaling.
+ * Properties of an AddonsConfig.
* @memberof google.container.v1
- * @interface IHorizontalPodAutoscaling
- * @property {boolean|null} [disabled] HorizontalPodAutoscaling disabled
+ * @interface IAddonsConfig
+ * @property {google.container.v1.IHttpLoadBalancing|null} [httpLoadBalancing] AddonsConfig httpLoadBalancing
+ * @property {google.container.v1.IHorizontalPodAutoscaling|null} [horizontalPodAutoscaling] AddonsConfig horizontalPodAutoscaling
+ * @property {google.container.v1.IKubernetesDashboard|null} [kubernetesDashboard] AddonsConfig kubernetesDashboard
+ * @property {google.container.v1.INetworkPolicyConfig|null} [networkPolicyConfig] AddonsConfig networkPolicyConfig
+ * @property {google.container.v1.ICloudRunConfig|null} [cloudRunConfig] AddonsConfig cloudRunConfig
+ * @property {google.container.v1.IDnsCacheConfig|null} [dnsCacheConfig] AddonsConfig dnsCacheConfig
+ * @property {google.container.v1.IConfigConnectorConfig|null} [configConnectorConfig] AddonsConfig configConnectorConfig
*/
/**
- * Constructs a new HorizontalPodAutoscaling.
+ * Constructs a new AddonsConfig.
* @memberof google.container.v1
- * @classdesc Represents a HorizontalPodAutoscaling.
- * @implements IHorizontalPodAutoscaling
+ * @classdesc Represents an AddonsConfig.
+ * @implements IAddonsConfig
* @constructor
- * @param {google.container.v1.IHorizontalPodAutoscaling=} [properties] Properties to set
+ * @param {google.container.v1.IAddonsConfig=} [properties] Properties to set
*/
- function HorizontalPodAutoscaling(properties) {
+ function AddonsConfig(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -3249,75 +3429,153 @@
}
/**
- * HorizontalPodAutoscaling disabled.
- * @member {boolean} disabled
- * @memberof google.container.v1.HorizontalPodAutoscaling
+ * AddonsConfig httpLoadBalancing.
+ * @member {google.container.v1.IHttpLoadBalancing|null|undefined} httpLoadBalancing
+ * @memberof google.container.v1.AddonsConfig
* @instance
*/
- HorizontalPodAutoscaling.prototype.disabled = false;
+ AddonsConfig.prototype.httpLoadBalancing = null;
/**
- * Creates a new HorizontalPodAutoscaling instance using the specified properties.
+ * AddonsConfig horizontalPodAutoscaling.
+ * @member {google.container.v1.IHorizontalPodAutoscaling|null|undefined} horizontalPodAutoscaling
+ * @memberof google.container.v1.AddonsConfig
+ * @instance
+ */
+ AddonsConfig.prototype.horizontalPodAutoscaling = null;
+
+ /**
+ * AddonsConfig kubernetesDashboard.
+ * @member {google.container.v1.IKubernetesDashboard|null|undefined} kubernetesDashboard
+ * @memberof google.container.v1.AddonsConfig
+ * @instance
+ */
+ AddonsConfig.prototype.kubernetesDashboard = null;
+
+ /**
+ * AddonsConfig networkPolicyConfig.
+ * @member {google.container.v1.INetworkPolicyConfig|null|undefined} networkPolicyConfig
+ * @memberof google.container.v1.AddonsConfig
+ * @instance
+ */
+ AddonsConfig.prototype.networkPolicyConfig = null;
+
+ /**
+ * AddonsConfig cloudRunConfig.
+ * @member {google.container.v1.ICloudRunConfig|null|undefined} cloudRunConfig
+ * @memberof google.container.v1.AddonsConfig
+ * @instance
+ */
+ AddonsConfig.prototype.cloudRunConfig = null;
+
+ /**
+ * AddonsConfig dnsCacheConfig.
+ * @member {google.container.v1.IDnsCacheConfig|null|undefined} dnsCacheConfig
+ * @memberof google.container.v1.AddonsConfig
+ * @instance
+ */
+ AddonsConfig.prototype.dnsCacheConfig = null;
+
+ /**
+ * AddonsConfig configConnectorConfig.
+ * @member {google.container.v1.IConfigConnectorConfig|null|undefined} configConnectorConfig
+ * @memberof google.container.v1.AddonsConfig
+ * @instance
+ */
+ AddonsConfig.prototype.configConnectorConfig = null;
+
+ /**
+ * Creates a new AddonsConfig instance using the specified properties.
* @function create
- * @memberof google.container.v1.HorizontalPodAutoscaling
+ * @memberof google.container.v1.AddonsConfig
* @static
- * @param {google.container.v1.IHorizontalPodAutoscaling=} [properties] Properties to set
- * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling instance
+ * @param {google.container.v1.IAddonsConfig=} [properties] Properties to set
+ * @returns {google.container.v1.AddonsConfig} AddonsConfig instance
*/
- HorizontalPodAutoscaling.create = function create(properties) {
- return new HorizontalPodAutoscaling(properties);
+ AddonsConfig.create = function create(properties) {
+ return new AddonsConfig(properties);
};
/**
- * Encodes the specified HorizontalPodAutoscaling message. Does not implicitly {@link google.container.v1.HorizontalPodAutoscaling.verify|verify} messages.
+ * Encodes the specified AddonsConfig message. Does not implicitly {@link google.container.v1.AddonsConfig.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.HorizontalPodAutoscaling
+ * @memberof google.container.v1.AddonsConfig
* @static
- * @param {google.container.v1.IHorizontalPodAutoscaling} message HorizontalPodAutoscaling message or plain object to encode
+ * @param {google.container.v1.IAddonsConfig} message AddonsConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- HorizontalPodAutoscaling.encode = function encode(message, writer) {
+ AddonsConfig.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled);
+ if (message.httpLoadBalancing != null && Object.hasOwnProperty.call(message, "httpLoadBalancing"))
+ $root.google.container.v1.HttpLoadBalancing.encode(message.httpLoadBalancing, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.horizontalPodAutoscaling != null && Object.hasOwnProperty.call(message, "horizontalPodAutoscaling"))
+ $root.google.container.v1.HorizontalPodAutoscaling.encode(message.horizontalPodAutoscaling, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.kubernetesDashboard != null && Object.hasOwnProperty.call(message, "kubernetesDashboard"))
+ $root.google.container.v1.KubernetesDashboard.encode(message.kubernetesDashboard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.networkPolicyConfig != null && Object.hasOwnProperty.call(message, "networkPolicyConfig"))
+ $root.google.container.v1.NetworkPolicyConfig.encode(message.networkPolicyConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.cloudRunConfig != null && Object.hasOwnProperty.call(message, "cloudRunConfig"))
+ $root.google.container.v1.CloudRunConfig.encode(message.cloudRunConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.dnsCacheConfig != null && Object.hasOwnProperty.call(message, "dnsCacheConfig"))
+ $root.google.container.v1.DnsCacheConfig.encode(message.dnsCacheConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.configConnectorConfig != null && Object.hasOwnProperty.call(message, "configConnectorConfig"))
+ $root.google.container.v1.ConfigConnectorConfig.encode(message.configConnectorConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
return writer;
};
/**
- * Encodes the specified HorizontalPodAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.HorizontalPodAutoscaling.verify|verify} messages.
+ * Encodes the specified AddonsConfig message, length delimited. Does not implicitly {@link google.container.v1.AddonsConfig.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.HorizontalPodAutoscaling
+ * @memberof google.container.v1.AddonsConfig
* @static
- * @param {google.container.v1.IHorizontalPodAutoscaling} message HorizontalPodAutoscaling message or plain object to encode
+ * @param {google.container.v1.IAddonsConfig} message AddonsConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- HorizontalPodAutoscaling.encodeDelimited = function encodeDelimited(message, writer) {
+ AddonsConfig.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a HorizontalPodAutoscaling message from the specified reader or buffer.
+ * Decodes an AddonsConfig message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.HorizontalPodAutoscaling
+ * @memberof google.container.v1.AddonsConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling
+ * @returns {google.container.v1.AddonsConfig} AddonsConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- HorizontalPodAutoscaling.decode = function decode(reader, length) {
+ AddonsConfig.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.HorizontalPodAutoscaling();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AddonsConfig();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.disabled = reader.bool();
+ message.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.decode(reader, reader.uint32());
+ break;
+ case 2:
+ message.horizontalPodAutoscaling = $root.google.container.v1.HorizontalPodAutoscaling.decode(reader, reader.uint32());
+ break;
+ case 3:
+ message.kubernetesDashboard = $root.google.container.v1.KubernetesDashboard.decode(reader, reader.uint32());
+ break;
+ case 4:
+ message.networkPolicyConfig = $root.google.container.v1.NetworkPolicyConfig.decode(reader, reader.uint32());
+ break;
+ case 7:
+ message.cloudRunConfig = $root.google.container.v1.CloudRunConfig.decode(reader, reader.uint32());
+ break;
+ case 8:
+ message.dnsCacheConfig = $root.google.container.v1.DnsCacheConfig.decode(reader, reader.uint32());
+ break;
+ case 10:
+ message.configConnectorConfig = $root.google.container.v1.ConfigConnectorConfig.decode(reader, reader.uint32());
break;
default:
reader.skipType(tag & 7);
@@ -3328,107 +3586,191 @@
};
/**
- * Decodes a HorizontalPodAutoscaling message from the specified reader or buffer, length delimited.
+ * Decodes an AddonsConfig message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.HorizontalPodAutoscaling
+ * @memberof google.container.v1.AddonsConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling
+ * @returns {google.container.v1.AddonsConfig} AddonsConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- HorizontalPodAutoscaling.decodeDelimited = function decodeDelimited(reader) {
+ AddonsConfig.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a HorizontalPodAutoscaling message.
+ * Verifies an AddonsConfig message.
* @function verify
- * @memberof google.container.v1.HorizontalPodAutoscaling
+ * @memberof google.container.v1.AddonsConfig
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- HorizontalPodAutoscaling.verify = function verify(message) {
+ AddonsConfig.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.disabled != null && message.hasOwnProperty("disabled"))
- if (typeof message.disabled !== "boolean")
- return "disabled: boolean expected";
+ if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing")) {
+ var error = $root.google.container.v1.HttpLoadBalancing.verify(message.httpLoadBalancing);
+ if (error)
+ return "httpLoadBalancing." + error;
+ }
+ if (message.horizontalPodAutoscaling != null && message.hasOwnProperty("horizontalPodAutoscaling")) {
+ var error = $root.google.container.v1.HorizontalPodAutoscaling.verify(message.horizontalPodAutoscaling);
+ if (error)
+ return "horizontalPodAutoscaling." + error;
+ }
+ if (message.kubernetesDashboard != null && message.hasOwnProperty("kubernetesDashboard")) {
+ var error = $root.google.container.v1.KubernetesDashboard.verify(message.kubernetesDashboard);
+ if (error)
+ return "kubernetesDashboard." + error;
+ }
+ if (message.networkPolicyConfig != null && message.hasOwnProperty("networkPolicyConfig")) {
+ var error = $root.google.container.v1.NetworkPolicyConfig.verify(message.networkPolicyConfig);
+ if (error)
+ return "networkPolicyConfig." + error;
+ }
+ if (message.cloudRunConfig != null && message.hasOwnProperty("cloudRunConfig")) {
+ var error = $root.google.container.v1.CloudRunConfig.verify(message.cloudRunConfig);
+ if (error)
+ return "cloudRunConfig." + error;
+ }
+ if (message.dnsCacheConfig != null && message.hasOwnProperty("dnsCacheConfig")) {
+ var error = $root.google.container.v1.DnsCacheConfig.verify(message.dnsCacheConfig);
+ if (error)
+ return "dnsCacheConfig." + error;
+ }
+ if (message.configConnectorConfig != null && message.hasOwnProperty("configConnectorConfig")) {
+ var error = $root.google.container.v1.ConfigConnectorConfig.verify(message.configConnectorConfig);
+ if (error)
+ return "configConnectorConfig." + error;
+ }
return null;
};
/**
- * Creates a HorizontalPodAutoscaling message from a plain object. Also converts values to their respective internal types.
+ * Creates an AddonsConfig message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.HorizontalPodAutoscaling
+ * @memberof google.container.v1.AddonsConfig
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling
+ * @returns {google.container.v1.AddonsConfig} AddonsConfig
*/
- HorizontalPodAutoscaling.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.HorizontalPodAutoscaling)
+ AddonsConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.AddonsConfig)
return object;
- var message = new $root.google.container.v1.HorizontalPodAutoscaling();
- if (object.disabled != null)
- message.disabled = Boolean(object.disabled);
+ var message = new $root.google.container.v1.AddonsConfig();
+ if (object.httpLoadBalancing != null) {
+ if (typeof object.httpLoadBalancing !== "object")
+ throw TypeError(".google.container.v1.AddonsConfig.httpLoadBalancing: object expected");
+ message.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.fromObject(object.httpLoadBalancing);
+ }
+ if (object.horizontalPodAutoscaling != null) {
+ if (typeof object.horizontalPodAutoscaling !== "object")
+ throw TypeError(".google.container.v1.AddonsConfig.horizontalPodAutoscaling: object expected");
+ message.horizontalPodAutoscaling = $root.google.container.v1.HorizontalPodAutoscaling.fromObject(object.horizontalPodAutoscaling);
+ }
+ if (object.kubernetesDashboard != null) {
+ if (typeof object.kubernetesDashboard !== "object")
+ throw TypeError(".google.container.v1.AddonsConfig.kubernetesDashboard: object expected");
+ message.kubernetesDashboard = $root.google.container.v1.KubernetesDashboard.fromObject(object.kubernetesDashboard);
+ }
+ if (object.networkPolicyConfig != null) {
+ if (typeof object.networkPolicyConfig !== "object")
+ throw TypeError(".google.container.v1.AddonsConfig.networkPolicyConfig: object expected");
+ message.networkPolicyConfig = $root.google.container.v1.NetworkPolicyConfig.fromObject(object.networkPolicyConfig);
+ }
+ if (object.cloudRunConfig != null) {
+ if (typeof object.cloudRunConfig !== "object")
+ throw TypeError(".google.container.v1.AddonsConfig.cloudRunConfig: object expected");
+ message.cloudRunConfig = $root.google.container.v1.CloudRunConfig.fromObject(object.cloudRunConfig);
+ }
+ if (object.dnsCacheConfig != null) {
+ if (typeof object.dnsCacheConfig !== "object")
+ throw TypeError(".google.container.v1.AddonsConfig.dnsCacheConfig: object expected");
+ message.dnsCacheConfig = $root.google.container.v1.DnsCacheConfig.fromObject(object.dnsCacheConfig);
+ }
+ if (object.configConnectorConfig != null) {
+ if (typeof object.configConnectorConfig !== "object")
+ throw TypeError(".google.container.v1.AddonsConfig.configConnectorConfig: object expected");
+ message.configConnectorConfig = $root.google.container.v1.ConfigConnectorConfig.fromObject(object.configConnectorConfig);
+ }
return message;
};
/**
- * Creates a plain object from a HorizontalPodAutoscaling message. Also converts values to other types if specified.
+ * Creates a plain object from an AddonsConfig message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.HorizontalPodAutoscaling
+ * @memberof google.container.v1.AddonsConfig
* @static
- * @param {google.container.v1.HorizontalPodAutoscaling} message HorizontalPodAutoscaling
+ * @param {google.container.v1.AddonsConfig} message AddonsConfig
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- HorizontalPodAutoscaling.toObject = function toObject(message, options) {
+ AddonsConfig.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.defaults)
- object.disabled = false;
- if (message.disabled != null && message.hasOwnProperty("disabled"))
- object.disabled = message.disabled;
+ if (options.defaults) {
+ object.httpLoadBalancing = null;
+ object.horizontalPodAutoscaling = null;
+ object.kubernetesDashboard = null;
+ object.networkPolicyConfig = null;
+ object.cloudRunConfig = null;
+ object.dnsCacheConfig = null;
+ object.configConnectorConfig = null;
+ }
+ if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing"))
+ object.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.toObject(message.httpLoadBalancing, options);
+ if (message.horizontalPodAutoscaling != null && message.hasOwnProperty("horizontalPodAutoscaling"))
+ object.horizontalPodAutoscaling = $root.google.container.v1.HorizontalPodAutoscaling.toObject(message.horizontalPodAutoscaling, options);
+ if (message.kubernetesDashboard != null && message.hasOwnProperty("kubernetesDashboard"))
+ object.kubernetesDashboard = $root.google.container.v1.KubernetesDashboard.toObject(message.kubernetesDashboard, options);
+ if (message.networkPolicyConfig != null && message.hasOwnProperty("networkPolicyConfig"))
+ object.networkPolicyConfig = $root.google.container.v1.NetworkPolicyConfig.toObject(message.networkPolicyConfig, options);
+ if (message.cloudRunConfig != null && message.hasOwnProperty("cloudRunConfig"))
+ object.cloudRunConfig = $root.google.container.v1.CloudRunConfig.toObject(message.cloudRunConfig, options);
+ if (message.dnsCacheConfig != null && message.hasOwnProperty("dnsCacheConfig"))
+ object.dnsCacheConfig = $root.google.container.v1.DnsCacheConfig.toObject(message.dnsCacheConfig, options);
+ if (message.configConnectorConfig != null && message.hasOwnProperty("configConnectorConfig"))
+ object.configConnectorConfig = $root.google.container.v1.ConfigConnectorConfig.toObject(message.configConnectorConfig, options);
return object;
};
/**
- * Converts this HorizontalPodAutoscaling to JSON.
+ * Converts this AddonsConfig to JSON.
* @function toJSON
- * @memberof google.container.v1.HorizontalPodAutoscaling
+ * @memberof google.container.v1.AddonsConfig
* @instance
* @returns {Object.} JSON object
*/
- HorizontalPodAutoscaling.prototype.toJSON = function toJSON() {
+ AddonsConfig.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return HorizontalPodAutoscaling;
+ return AddonsConfig;
})();
- v1.KubernetesDashboard = (function() {
+ v1.HttpLoadBalancing = (function() {
/**
- * Properties of a KubernetesDashboard.
+ * Properties of a HttpLoadBalancing.
* @memberof google.container.v1
- * @interface IKubernetesDashboard
- * @property {boolean|null} [disabled] KubernetesDashboard disabled
+ * @interface IHttpLoadBalancing
+ * @property {boolean|null} [disabled] HttpLoadBalancing disabled
*/
/**
- * Constructs a new KubernetesDashboard.
+ * Constructs a new HttpLoadBalancing.
* @memberof google.container.v1
- * @classdesc Represents a KubernetesDashboard.
- * @implements IKubernetesDashboard
+ * @classdesc Represents a HttpLoadBalancing.
+ * @implements IHttpLoadBalancing
* @constructor
- * @param {google.container.v1.IKubernetesDashboard=} [properties] Properties to set
+ * @param {google.container.v1.IHttpLoadBalancing=} [properties] Properties to set
*/
- function KubernetesDashboard(properties) {
+ function HttpLoadBalancing(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -3436,35 +3778,35 @@
}
/**
- * KubernetesDashboard disabled.
+ * HttpLoadBalancing disabled.
* @member {boolean} disabled
- * @memberof google.container.v1.KubernetesDashboard
+ * @memberof google.container.v1.HttpLoadBalancing
* @instance
*/
- KubernetesDashboard.prototype.disabled = false;
+ HttpLoadBalancing.prototype.disabled = false;
/**
- * Creates a new KubernetesDashboard instance using the specified properties.
+ * Creates a new HttpLoadBalancing instance using the specified properties.
* @function create
- * @memberof google.container.v1.KubernetesDashboard
+ * @memberof google.container.v1.HttpLoadBalancing
* @static
- * @param {google.container.v1.IKubernetesDashboard=} [properties] Properties to set
- * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard instance
+ * @param {google.container.v1.IHttpLoadBalancing=} [properties] Properties to set
+ * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing instance
*/
- KubernetesDashboard.create = function create(properties) {
- return new KubernetesDashboard(properties);
+ HttpLoadBalancing.create = function create(properties) {
+ return new HttpLoadBalancing(properties);
};
/**
- * Encodes the specified KubernetesDashboard message. Does not implicitly {@link google.container.v1.KubernetesDashboard.verify|verify} messages.
+ * Encodes the specified HttpLoadBalancing message. Does not implicitly {@link google.container.v1.HttpLoadBalancing.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.KubernetesDashboard
+ * @memberof google.container.v1.HttpLoadBalancing
* @static
- * @param {google.container.v1.IKubernetesDashboard} message KubernetesDashboard message or plain object to encode
+ * @param {google.container.v1.IHttpLoadBalancing} message HttpLoadBalancing message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- KubernetesDashboard.encode = function encode(message, writer) {
+ HttpLoadBalancing.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled"))
@@ -3473,33 +3815,33 @@
};
/**
- * Encodes the specified KubernetesDashboard message, length delimited. Does not implicitly {@link google.container.v1.KubernetesDashboard.verify|verify} messages.
+ * Encodes the specified HttpLoadBalancing message, length delimited. Does not implicitly {@link google.container.v1.HttpLoadBalancing.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.KubernetesDashboard
+ * @memberof google.container.v1.HttpLoadBalancing
* @static
- * @param {google.container.v1.IKubernetesDashboard} message KubernetesDashboard message or plain object to encode
+ * @param {google.container.v1.IHttpLoadBalancing} message HttpLoadBalancing message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- KubernetesDashboard.encodeDelimited = function encodeDelimited(message, writer) {
+ HttpLoadBalancing.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a KubernetesDashboard message from the specified reader or buffer.
+ * Decodes a HttpLoadBalancing message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.KubernetesDashboard
+ * @memberof google.container.v1.HttpLoadBalancing
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard
+ * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- KubernetesDashboard.decode = function decode(reader, length) {
+ HttpLoadBalancing.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.KubernetesDashboard();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.HttpLoadBalancing();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
@@ -3515,30 +3857,30 @@
};
/**
- * Decodes a KubernetesDashboard message from the specified reader or buffer, length delimited.
+ * Decodes a HttpLoadBalancing message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.KubernetesDashboard
+ * @memberof google.container.v1.HttpLoadBalancing
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard
+ * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- KubernetesDashboard.decodeDelimited = function decodeDelimited(reader) {
+ HttpLoadBalancing.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a KubernetesDashboard message.
+ * Verifies a HttpLoadBalancing message.
* @function verify
- * @memberof google.container.v1.KubernetesDashboard
+ * @memberof google.container.v1.HttpLoadBalancing
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- KubernetesDashboard.verify = function verify(message) {
+ HttpLoadBalancing.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.disabled != null && message.hasOwnProperty("disabled"))
@@ -3548,32 +3890,32 @@
};
/**
- * Creates a KubernetesDashboard message from a plain object. Also converts values to their respective internal types.
+ * Creates a HttpLoadBalancing message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.KubernetesDashboard
+ * @memberof google.container.v1.HttpLoadBalancing
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard
+ * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing
*/
- KubernetesDashboard.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.KubernetesDashboard)
+ HttpLoadBalancing.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.HttpLoadBalancing)
return object;
- var message = new $root.google.container.v1.KubernetesDashboard();
+ var message = new $root.google.container.v1.HttpLoadBalancing();
if (object.disabled != null)
message.disabled = Boolean(object.disabled);
return message;
};
/**
- * Creates a plain object from a KubernetesDashboard message. Also converts values to other types if specified.
+ * Creates a plain object from a HttpLoadBalancing message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.KubernetesDashboard
+ * @memberof google.container.v1.HttpLoadBalancing
* @static
- * @param {google.container.v1.KubernetesDashboard} message KubernetesDashboard
+ * @param {google.container.v1.HttpLoadBalancing} message HttpLoadBalancing
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- KubernetesDashboard.toObject = function toObject(message, options) {
+ HttpLoadBalancing.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
@@ -3585,37 +3927,37 @@
};
/**
- * Converts this KubernetesDashboard to JSON.
+ * Converts this HttpLoadBalancing to JSON.
* @function toJSON
- * @memberof google.container.v1.KubernetesDashboard
+ * @memberof google.container.v1.HttpLoadBalancing
* @instance
* @returns {Object.} JSON object
*/
- KubernetesDashboard.prototype.toJSON = function toJSON() {
+ HttpLoadBalancing.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return KubernetesDashboard;
+ return HttpLoadBalancing;
})();
- v1.NetworkPolicyConfig = (function() {
+ v1.HorizontalPodAutoscaling = (function() {
/**
- * Properties of a NetworkPolicyConfig.
+ * Properties of a HorizontalPodAutoscaling.
* @memberof google.container.v1
- * @interface INetworkPolicyConfig
- * @property {boolean|null} [disabled] NetworkPolicyConfig disabled
+ * @interface IHorizontalPodAutoscaling
+ * @property {boolean|null} [disabled] HorizontalPodAutoscaling disabled
*/
/**
- * Constructs a new NetworkPolicyConfig.
+ * Constructs a new HorizontalPodAutoscaling.
* @memberof google.container.v1
- * @classdesc Represents a NetworkPolicyConfig.
- * @implements INetworkPolicyConfig
+ * @classdesc Represents a HorizontalPodAutoscaling.
+ * @implements IHorizontalPodAutoscaling
* @constructor
- * @param {google.container.v1.INetworkPolicyConfig=} [properties] Properties to set
+ * @param {google.container.v1.IHorizontalPodAutoscaling=} [properties] Properties to set
*/
- function NetworkPolicyConfig(properties) {
+ function HorizontalPodAutoscaling(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -3623,35 +3965,35 @@
}
/**
- * NetworkPolicyConfig disabled.
+ * HorizontalPodAutoscaling disabled.
* @member {boolean} disabled
- * @memberof google.container.v1.NetworkPolicyConfig
+ * @memberof google.container.v1.HorizontalPodAutoscaling
* @instance
*/
- NetworkPolicyConfig.prototype.disabled = false;
+ HorizontalPodAutoscaling.prototype.disabled = false;
/**
- * Creates a new NetworkPolicyConfig instance using the specified properties.
+ * Creates a new HorizontalPodAutoscaling instance using the specified properties.
* @function create
- * @memberof google.container.v1.NetworkPolicyConfig
+ * @memberof google.container.v1.HorizontalPodAutoscaling
* @static
- * @param {google.container.v1.INetworkPolicyConfig=} [properties] Properties to set
- * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig instance
+ * @param {google.container.v1.IHorizontalPodAutoscaling=} [properties] Properties to set
+ * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling instance
*/
- NetworkPolicyConfig.create = function create(properties) {
- return new NetworkPolicyConfig(properties);
+ HorizontalPodAutoscaling.create = function create(properties) {
+ return new HorizontalPodAutoscaling(properties);
};
/**
- * Encodes the specified NetworkPolicyConfig message. Does not implicitly {@link google.container.v1.NetworkPolicyConfig.verify|verify} messages.
+ * Encodes the specified HorizontalPodAutoscaling message. Does not implicitly {@link google.container.v1.HorizontalPodAutoscaling.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.NetworkPolicyConfig
+ * @memberof google.container.v1.HorizontalPodAutoscaling
* @static
- * @param {google.container.v1.INetworkPolicyConfig} message NetworkPolicyConfig message or plain object to encode
+ * @param {google.container.v1.IHorizontalPodAutoscaling} message HorizontalPodAutoscaling message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- NetworkPolicyConfig.encode = function encode(message, writer) {
+ HorizontalPodAutoscaling.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled"))
@@ -3660,33 +4002,33 @@
};
/**
- * Encodes the specified NetworkPolicyConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkPolicyConfig.verify|verify} messages.
+ * Encodes the specified HorizontalPodAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.HorizontalPodAutoscaling.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.NetworkPolicyConfig
+ * @memberof google.container.v1.HorizontalPodAutoscaling
* @static
- * @param {google.container.v1.INetworkPolicyConfig} message NetworkPolicyConfig message or plain object to encode
+ * @param {google.container.v1.IHorizontalPodAutoscaling} message HorizontalPodAutoscaling message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- NetworkPolicyConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ HorizontalPodAutoscaling.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a NetworkPolicyConfig message from the specified reader or buffer.
+ * Decodes a HorizontalPodAutoscaling message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.NetworkPolicyConfig
+ * @memberof google.container.v1.HorizontalPodAutoscaling
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig
+ * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- NetworkPolicyConfig.decode = function decode(reader, length) {
+ HorizontalPodAutoscaling.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.NetworkPolicyConfig();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.HorizontalPodAutoscaling();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
@@ -3702,30 +4044,30 @@
};
/**
- * Decodes a NetworkPolicyConfig message from the specified reader or buffer, length delimited.
+ * Decodes a HorizontalPodAutoscaling message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.NetworkPolicyConfig
+ * @memberof google.container.v1.HorizontalPodAutoscaling
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig
+ * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- NetworkPolicyConfig.decodeDelimited = function decodeDelimited(reader) {
+ HorizontalPodAutoscaling.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a NetworkPolicyConfig message.
+ * Verifies a HorizontalPodAutoscaling message.
* @function verify
- * @memberof google.container.v1.NetworkPolicyConfig
+ * @memberof google.container.v1.HorizontalPodAutoscaling
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- NetworkPolicyConfig.verify = function verify(message) {
+ HorizontalPodAutoscaling.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.disabled != null && message.hasOwnProperty("disabled"))
@@ -3735,32 +4077,32 @@
};
/**
- * Creates a NetworkPolicyConfig message from a plain object. Also converts values to their respective internal types.
+ * Creates a HorizontalPodAutoscaling message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.NetworkPolicyConfig
+ * @memberof google.container.v1.HorizontalPodAutoscaling
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig
+ * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling
*/
- NetworkPolicyConfig.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.NetworkPolicyConfig)
+ HorizontalPodAutoscaling.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.HorizontalPodAutoscaling)
return object;
- var message = new $root.google.container.v1.NetworkPolicyConfig();
+ var message = new $root.google.container.v1.HorizontalPodAutoscaling();
if (object.disabled != null)
message.disabled = Boolean(object.disabled);
return message;
};
/**
- * Creates a plain object from a NetworkPolicyConfig message. Also converts values to other types if specified.
+ * Creates a plain object from a HorizontalPodAutoscaling message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.NetworkPolicyConfig
+ * @memberof google.container.v1.HorizontalPodAutoscaling
* @static
- * @param {google.container.v1.NetworkPolicyConfig} message NetworkPolicyConfig
+ * @param {google.container.v1.HorizontalPodAutoscaling} message HorizontalPodAutoscaling
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- NetworkPolicyConfig.toObject = function toObject(message, options) {
+ HorizontalPodAutoscaling.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
@@ -3772,41 +4114,37 @@
};
/**
- * Converts this NetworkPolicyConfig to JSON.
+ * Converts this HorizontalPodAutoscaling to JSON.
* @function toJSON
- * @memberof google.container.v1.NetworkPolicyConfig
+ * @memberof google.container.v1.HorizontalPodAutoscaling
* @instance
* @returns {Object.} JSON object
*/
- NetworkPolicyConfig.prototype.toJSON = function toJSON() {
+ HorizontalPodAutoscaling.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return NetworkPolicyConfig;
+ return HorizontalPodAutoscaling;
})();
- v1.PrivateClusterConfig = (function() {
+ v1.KubernetesDashboard = (function() {
/**
- * Properties of a PrivateClusterConfig.
+ * Properties of a KubernetesDashboard.
* @memberof google.container.v1
- * @interface IPrivateClusterConfig
- * @property {boolean|null} [enablePrivateNodes] PrivateClusterConfig enablePrivateNodes
- * @property {boolean|null} [enablePrivateEndpoint] PrivateClusterConfig enablePrivateEndpoint
- * @property {string|null} [masterIpv4CidrBlock] PrivateClusterConfig masterIpv4CidrBlock
- * @property {string|null} [privateEndpoint] PrivateClusterConfig privateEndpoint
- * @property {string|null} [publicEndpoint] PrivateClusterConfig publicEndpoint
+ * @interface IKubernetesDashboard
+ * @property {boolean|null} [disabled] KubernetesDashboard disabled
*/
/**
- * Constructs a new PrivateClusterConfig.
+ * Constructs a new KubernetesDashboard.
* @memberof google.container.v1
- * @classdesc Represents a PrivateClusterConfig.
- * @implements IPrivateClusterConfig
+ * @classdesc Represents a KubernetesDashboard.
+ * @implements IKubernetesDashboard
* @constructor
- * @param {google.container.v1.IPrivateClusterConfig=} [properties] Properties to set
+ * @param {google.container.v1.IKubernetesDashboard=} [properties] Properties to set
*/
- function PrivateClusterConfig(properties) {
+ function KubernetesDashboard(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -3814,127 +4152,75 @@
}
/**
- * PrivateClusterConfig enablePrivateNodes.
- * @member {boolean} enablePrivateNodes
- * @memberof google.container.v1.PrivateClusterConfig
- * @instance
- */
- PrivateClusterConfig.prototype.enablePrivateNodes = false;
-
- /**
- * PrivateClusterConfig enablePrivateEndpoint.
- * @member {boolean} enablePrivateEndpoint
- * @memberof google.container.v1.PrivateClusterConfig
- * @instance
- */
- PrivateClusterConfig.prototype.enablePrivateEndpoint = false;
-
- /**
- * PrivateClusterConfig masterIpv4CidrBlock.
- * @member {string} masterIpv4CidrBlock
- * @memberof google.container.v1.PrivateClusterConfig
- * @instance
- */
- PrivateClusterConfig.prototype.masterIpv4CidrBlock = "";
-
- /**
- * PrivateClusterConfig privateEndpoint.
- * @member {string} privateEndpoint
- * @memberof google.container.v1.PrivateClusterConfig
- * @instance
- */
- PrivateClusterConfig.prototype.privateEndpoint = "";
-
- /**
- * PrivateClusterConfig publicEndpoint.
- * @member {string} publicEndpoint
- * @memberof google.container.v1.PrivateClusterConfig
+ * KubernetesDashboard disabled.
+ * @member {boolean} disabled
+ * @memberof google.container.v1.KubernetesDashboard
* @instance
*/
- PrivateClusterConfig.prototype.publicEndpoint = "";
+ KubernetesDashboard.prototype.disabled = false;
/**
- * Creates a new PrivateClusterConfig instance using the specified properties.
+ * Creates a new KubernetesDashboard instance using the specified properties.
* @function create
- * @memberof google.container.v1.PrivateClusterConfig
+ * @memberof google.container.v1.KubernetesDashboard
* @static
- * @param {google.container.v1.IPrivateClusterConfig=} [properties] Properties to set
- * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig instance
+ * @param {google.container.v1.IKubernetesDashboard=} [properties] Properties to set
+ * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard instance
*/
- PrivateClusterConfig.create = function create(properties) {
- return new PrivateClusterConfig(properties);
+ KubernetesDashboard.create = function create(properties) {
+ return new KubernetesDashboard(properties);
};
/**
- * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages.
+ * Encodes the specified KubernetesDashboard message. Does not implicitly {@link google.container.v1.KubernetesDashboard.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.PrivateClusterConfig
+ * @memberof google.container.v1.KubernetesDashboard
* @static
- * @param {google.container.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode
+ * @param {google.container.v1.IKubernetesDashboard} message KubernetesDashboard message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- PrivateClusterConfig.encode = function encode(message, writer) {
+ KubernetesDashboard.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.enablePrivateNodes != null && Object.hasOwnProperty.call(message, "enablePrivateNodes"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateNodes);
- if (message.enablePrivateEndpoint != null && Object.hasOwnProperty.call(message, "enablePrivateEndpoint"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enablePrivateEndpoint);
- if (message.masterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "masterIpv4CidrBlock"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4CidrBlock);
- if (message.privateEndpoint != null && Object.hasOwnProperty.call(message, "privateEndpoint"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.privateEndpoint);
- if (message.publicEndpoint != null && Object.hasOwnProperty.call(message, "publicEndpoint"))
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicEndpoint);
+ if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled);
return writer;
};
/**
- * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages.
+ * Encodes the specified KubernetesDashboard message, length delimited. Does not implicitly {@link google.container.v1.KubernetesDashboard.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.PrivateClusterConfig
+ * @memberof google.container.v1.KubernetesDashboard
* @static
- * @param {google.container.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode
+ * @param {google.container.v1.IKubernetesDashboard} message KubernetesDashboard message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- PrivateClusterConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ KubernetesDashboard.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a PrivateClusterConfig message from the specified reader or buffer.
+ * Decodes a KubernetesDashboard message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.PrivateClusterConfig
+ * @memberof google.container.v1.KubernetesDashboard
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig
+ * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- PrivateClusterConfig.decode = function decode(reader, length) {
+ KubernetesDashboard.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.PrivateClusterConfig();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.KubernetesDashboard();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.enablePrivateNodes = reader.bool();
- break;
- case 2:
- message.enablePrivateEndpoint = reader.bool();
- break;
- case 3:
- message.masterIpv4CidrBlock = reader.string();
- break;
- case 4:
- message.privateEndpoint = reader.string();
- break;
- case 5:
- message.publicEndpoint = reader.string();
+ message.disabled = reader.bool();
break;
default:
reader.skipType(tag & 7);
@@ -3945,141 +4231,107 @@
};
/**
- * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited.
+ * Decodes a KubernetesDashboard message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.PrivateClusterConfig
+ * @memberof google.container.v1.KubernetesDashboard
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig
+ * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- PrivateClusterConfig.decodeDelimited = function decodeDelimited(reader) {
+ KubernetesDashboard.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a PrivateClusterConfig message.
+ * Verifies a KubernetesDashboard message.
* @function verify
- * @memberof google.container.v1.PrivateClusterConfig
+ * @memberof google.container.v1.KubernetesDashboard
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- PrivateClusterConfig.verify = function verify(message) {
+ KubernetesDashboard.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes"))
- if (typeof message.enablePrivateNodes !== "boolean")
- return "enablePrivateNodes: boolean expected";
- if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint"))
- if (typeof message.enablePrivateEndpoint !== "boolean")
- return "enablePrivateEndpoint: boolean expected";
- if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock"))
- if (!$util.isString(message.masterIpv4CidrBlock))
- return "masterIpv4CidrBlock: string expected";
- if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint"))
- if (!$util.isString(message.privateEndpoint))
- return "privateEndpoint: string expected";
- if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint"))
- if (!$util.isString(message.publicEndpoint))
- return "publicEndpoint: string expected";
+ if (message.disabled != null && message.hasOwnProperty("disabled"))
+ if (typeof message.disabled !== "boolean")
+ return "disabled: boolean expected";
return null;
};
/**
- * Creates a PrivateClusterConfig message from a plain object. Also converts values to their respective internal types.
+ * Creates a KubernetesDashboard message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.PrivateClusterConfig
+ * @memberof google.container.v1.KubernetesDashboard
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig
+ * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard
*/
- PrivateClusterConfig.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.PrivateClusterConfig)
+ KubernetesDashboard.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.KubernetesDashboard)
return object;
- var message = new $root.google.container.v1.PrivateClusterConfig();
- if (object.enablePrivateNodes != null)
- message.enablePrivateNodes = Boolean(object.enablePrivateNodes);
- if (object.enablePrivateEndpoint != null)
- message.enablePrivateEndpoint = Boolean(object.enablePrivateEndpoint);
- if (object.masterIpv4CidrBlock != null)
- message.masterIpv4CidrBlock = String(object.masterIpv4CidrBlock);
- if (object.privateEndpoint != null)
- message.privateEndpoint = String(object.privateEndpoint);
- if (object.publicEndpoint != null)
- message.publicEndpoint = String(object.publicEndpoint);
+ var message = new $root.google.container.v1.KubernetesDashboard();
+ if (object.disabled != null)
+ message.disabled = Boolean(object.disabled);
return message;
};
/**
- * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified.
+ * Creates a plain object from a KubernetesDashboard message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.PrivateClusterConfig
+ * @memberof google.container.v1.KubernetesDashboard
* @static
- * @param {google.container.v1.PrivateClusterConfig} message PrivateClusterConfig
+ * @param {google.container.v1.KubernetesDashboard} message KubernetesDashboard
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- PrivateClusterConfig.toObject = function toObject(message, options) {
+ KubernetesDashboard.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.defaults) {
- object.enablePrivateNodes = false;
- object.enablePrivateEndpoint = false;
- object.masterIpv4CidrBlock = "";
- object.privateEndpoint = "";
- object.publicEndpoint = "";
- }
- if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes"))
- object.enablePrivateNodes = message.enablePrivateNodes;
- if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint"))
- object.enablePrivateEndpoint = message.enablePrivateEndpoint;
- if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock"))
- object.masterIpv4CidrBlock = message.masterIpv4CidrBlock;
- if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint"))
- object.privateEndpoint = message.privateEndpoint;
- if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint"))
- object.publicEndpoint = message.publicEndpoint;
+ if (options.defaults)
+ object.disabled = false;
+ if (message.disabled != null && message.hasOwnProperty("disabled"))
+ object.disabled = message.disabled;
return object;
};
/**
- * Converts this PrivateClusterConfig to JSON.
+ * Converts this KubernetesDashboard to JSON.
* @function toJSON
- * @memberof google.container.v1.PrivateClusterConfig
+ * @memberof google.container.v1.KubernetesDashboard
* @instance
* @returns {Object.} JSON object
*/
- PrivateClusterConfig.prototype.toJSON = function toJSON() {
+ KubernetesDashboard.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return PrivateClusterConfig;
+ return KubernetesDashboard;
})();
- v1.AuthenticatorGroupsConfig = (function() {
+ v1.NetworkPolicyConfig = (function() {
/**
- * Properties of an AuthenticatorGroupsConfig.
+ * Properties of a NetworkPolicyConfig.
* @memberof google.container.v1
- * @interface IAuthenticatorGroupsConfig
- * @property {boolean|null} [enabled] AuthenticatorGroupsConfig enabled
- * @property {string|null} [securityGroup] AuthenticatorGroupsConfig securityGroup
+ * @interface INetworkPolicyConfig
+ * @property {boolean|null} [disabled] NetworkPolicyConfig disabled
*/
/**
- * Constructs a new AuthenticatorGroupsConfig.
+ * Constructs a new NetworkPolicyConfig.
* @memberof google.container.v1
- * @classdesc Represents an AuthenticatorGroupsConfig.
- * @implements IAuthenticatorGroupsConfig
+ * @classdesc Represents a NetworkPolicyConfig.
+ * @implements INetworkPolicyConfig
* @constructor
- * @param {google.container.v1.IAuthenticatorGroupsConfig=} [properties] Properties to set
+ * @param {google.container.v1.INetworkPolicyConfig=} [properties] Properties to set
*/
- function AuthenticatorGroupsConfig(properties) {
+ function NetworkPolicyConfig(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -4087,88 +4339,75 @@
}
/**
- * AuthenticatorGroupsConfig enabled.
- * @member {boolean} enabled
- * @memberof google.container.v1.AuthenticatorGroupsConfig
- * @instance
- */
- AuthenticatorGroupsConfig.prototype.enabled = false;
-
- /**
- * AuthenticatorGroupsConfig securityGroup.
- * @member {string} securityGroup
- * @memberof google.container.v1.AuthenticatorGroupsConfig
+ * NetworkPolicyConfig disabled.
+ * @member {boolean} disabled
+ * @memberof google.container.v1.NetworkPolicyConfig
* @instance
*/
- AuthenticatorGroupsConfig.prototype.securityGroup = "";
+ NetworkPolicyConfig.prototype.disabled = false;
/**
- * Creates a new AuthenticatorGroupsConfig instance using the specified properties.
+ * Creates a new NetworkPolicyConfig instance using the specified properties.
* @function create
- * @memberof google.container.v1.AuthenticatorGroupsConfig
+ * @memberof google.container.v1.NetworkPolicyConfig
* @static
- * @param {google.container.v1.IAuthenticatorGroupsConfig=} [properties] Properties to set
- * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig instance
+ * @param {google.container.v1.INetworkPolicyConfig=} [properties] Properties to set
+ * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig instance
*/
- AuthenticatorGroupsConfig.create = function create(properties) {
- return new AuthenticatorGroupsConfig(properties);
+ NetworkPolicyConfig.create = function create(properties) {
+ return new NetworkPolicyConfig(properties);
};
/**
- * Encodes the specified AuthenticatorGroupsConfig message. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages.
+ * Encodes the specified NetworkPolicyConfig message. Does not implicitly {@link google.container.v1.NetworkPolicyConfig.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.AuthenticatorGroupsConfig
+ * @memberof google.container.v1.NetworkPolicyConfig
* @static
- * @param {google.container.v1.IAuthenticatorGroupsConfig} message AuthenticatorGroupsConfig message or plain object to encode
+ * @param {google.container.v1.INetworkPolicyConfig} message NetworkPolicyConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- AuthenticatorGroupsConfig.encode = function encode(message, writer) {
+ NetworkPolicyConfig.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
- if (message.securityGroup != null && Object.hasOwnProperty.call(message, "securityGroup"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.securityGroup);
+ if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled);
return writer;
};
/**
- * Encodes the specified AuthenticatorGroupsConfig message, length delimited. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages.
+ * Encodes the specified NetworkPolicyConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkPolicyConfig.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.AuthenticatorGroupsConfig
+ * @memberof google.container.v1.NetworkPolicyConfig
* @static
- * @param {google.container.v1.IAuthenticatorGroupsConfig} message AuthenticatorGroupsConfig message or plain object to encode
+ * @param {google.container.v1.INetworkPolicyConfig} message NetworkPolicyConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- AuthenticatorGroupsConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ NetworkPolicyConfig.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer.
+ * Decodes a NetworkPolicyConfig message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.AuthenticatorGroupsConfig
+ * @memberof google.container.v1.NetworkPolicyConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig
+ * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- AuthenticatorGroupsConfig.decode = function decode(reader, length) {
+ NetworkPolicyConfig.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.AuthenticatorGroupsConfig();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NetworkPolicyConfig();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.enabled = reader.bool();
- break;
- case 2:
- message.securityGroup = reader.string();
+ message.disabled = reader.bool();
break;
default:
reader.skipType(tag & 7);
@@ -4179,116 +4418,107 @@
};
/**
- * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer, length delimited.
+ * Decodes a NetworkPolicyConfig message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.AuthenticatorGroupsConfig
+ * @memberof google.container.v1.NetworkPolicyConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig
+ * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- AuthenticatorGroupsConfig.decodeDelimited = function decodeDelimited(reader) {
+ NetworkPolicyConfig.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies an AuthenticatorGroupsConfig message.
+ * Verifies a NetworkPolicyConfig message.
* @function verify
- * @memberof google.container.v1.AuthenticatorGroupsConfig
+ * @memberof google.container.v1.NetworkPolicyConfig
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- AuthenticatorGroupsConfig.verify = function verify(message) {
+ NetworkPolicyConfig.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.enabled != null && message.hasOwnProperty("enabled"))
- if (typeof message.enabled !== "boolean")
- return "enabled: boolean expected";
- if (message.securityGroup != null && message.hasOwnProperty("securityGroup"))
- if (!$util.isString(message.securityGroup))
- return "securityGroup: string expected";
+ if (message.disabled != null && message.hasOwnProperty("disabled"))
+ if (typeof message.disabled !== "boolean")
+ return "disabled: boolean expected";
return null;
};
/**
- * Creates an AuthenticatorGroupsConfig message from a plain object. Also converts values to their respective internal types.
+ * Creates a NetworkPolicyConfig message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.AuthenticatorGroupsConfig
+ * @memberof google.container.v1.NetworkPolicyConfig
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig
+ * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig
*/
- AuthenticatorGroupsConfig.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.AuthenticatorGroupsConfig)
+ NetworkPolicyConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.NetworkPolicyConfig)
return object;
- var message = new $root.google.container.v1.AuthenticatorGroupsConfig();
- if (object.enabled != null)
- message.enabled = Boolean(object.enabled);
- if (object.securityGroup != null)
- message.securityGroup = String(object.securityGroup);
+ var message = new $root.google.container.v1.NetworkPolicyConfig();
+ if (object.disabled != null)
+ message.disabled = Boolean(object.disabled);
return message;
};
/**
- * Creates a plain object from an AuthenticatorGroupsConfig message. Also converts values to other types if specified.
+ * Creates a plain object from a NetworkPolicyConfig message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.AuthenticatorGroupsConfig
+ * @memberof google.container.v1.NetworkPolicyConfig
* @static
- * @param {google.container.v1.AuthenticatorGroupsConfig} message AuthenticatorGroupsConfig
+ * @param {google.container.v1.NetworkPolicyConfig} message NetworkPolicyConfig
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- AuthenticatorGroupsConfig.toObject = function toObject(message, options) {
+ NetworkPolicyConfig.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.defaults) {
- object.enabled = false;
- object.securityGroup = "";
- }
- if (message.enabled != null && message.hasOwnProperty("enabled"))
- object.enabled = message.enabled;
- if (message.securityGroup != null && message.hasOwnProperty("securityGroup"))
- object.securityGroup = message.securityGroup;
+ if (options.defaults)
+ object.disabled = false;
+ if (message.disabled != null && message.hasOwnProperty("disabled"))
+ object.disabled = message.disabled;
return object;
};
/**
- * Converts this AuthenticatorGroupsConfig to JSON.
+ * Converts this NetworkPolicyConfig to JSON.
* @function toJSON
- * @memberof google.container.v1.AuthenticatorGroupsConfig
+ * @memberof google.container.v1.NetworkPolicyConfig
* @instance
* @returns {Object.} JSON object
*/
- AuthenticatorGroupsConfig.prototype.toJSON = function toJSON() {
+ NetworkPolicyConfig.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return AuthenticatorGroupsConfig;
+ return NetworkPolicyConfig;
})();
- v1.CloudRunConfig = (function() {
+ v1.DnsCacheConfig = (function() {
/**
- * Properties of a CloudRunConfig.
+ * Properties of a DnsCacheConfig.
* @memberof google.container.v1
- * @interface ICloudRunConfig
- * @property {boolean|null} [disabled] CloudRunConfig disabled
+ * @interface IDnsCacheConfig
+ * @property {boolean|null} [enabled] DnsCacheConfig enabled
*/
/**
- * Constructs a new CloudRunConfig.
+ * Constructs a new DnsCacheConfig.
* @memberof google.container.v1
- * @classdesc Represents a CloudRunConfig.
- * @implements ICloudRunConfig
+ * @classdesc Represents a DnsCacheConfig.
+ * @implements IDnsCacheConfig
* @constructor
- * @param {google.container.v1.ICloudRunConfig=} [properties] Properties to set
+ * @param {google.container.v1.IDnsCacheConfig=} [properties] Properties to set
*/
- function CloudRunConfig(properties) {
+ function DnsCacheConfig(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -4296,75 +4526,75 @@
}
/**
- * CloudRunConfig disabled.
- * @member {boolean} disabled
- * @memberof google.container.v1.CloudRunConfig
+ * DnsCacheConfig enabled.
+ * @member {boolean} enabled
+ * @memberof google.container.v1.DnsCacheConfig
* @instance
*/
- CloudRunConfig.prototype.disabled = false;
+ DnsCacheConfig.prototype.enabled = false;
/**
- * Creates a new CloudRunConfig instance using the specified properties.
+ * Creates a new DnsCacheConfig instance using the specified properties.
* @function create
- * @memberof google.container.v1.CloudRunConfig
+ * @memberof google.container.v1.DnsCacheConfig
* @static
- * @param {google.container.v1.ICloudRunConfig=} [properties] Properties to set
- * @returns {google.container.v1.CloudRunConfig} CloudRunConfig instance
+ * @param {google.container.v1.IDnsCacheConfig=} [properties] Properties to set
+ * @returns {google.container.v1.DnsCacheConfig} DnsCacheConfig instance
*/
- CloudRunConfig.create = function create(properties) {
- return new CloudRunConfig(properties);
+ DnsCacheConfig.create = function create(properties) {
+ return new DnsCacheConfig(properties);
};
/**
- * Encodes the specified CloudRunConfig message. Does not implicitly {@link google.container.v1.CloudRunConfig.verify|verify} messages.
+ * Encodes the specified DnsCacheConfig message. Does not implicitly {@link google.container.v1.DnsCacheConfig.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.CloudRunConfig
+ * @memberof google.container.v1.DnsCacheConfig
* @static
- * @param {google.container.v1.ICloudRunConfig} message CloudRunConfig message or plain object to encode
+ * @param {google.container.v1.IDnsCacheConfig} message DnsCacheConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- CloudRunConfig.encode = function encode(message, writer) {
+ DnsCacheConfig.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled);
+ if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
return writer;
};
/**
- * Encodes the specified CloudRunConfig message, length delimited. Does not implicitly {@link google.container.v1.CloudRunConfig.verify|verify} messages.
+ * Encodes the specified DnsCacheConfig message, length delimited. Does not implicitly {@link google.container.v1.DnsCacheConfig.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.CloudRunConfig
+ * @memberof google.container.v1.DnsCacheConfig
* @static
- * @param {google.container.v1.ICloudRunConfig} message CloudRunConfig message or plain object to encode
+ * @param {google.container.v1.IDnsCacheConfig} message DnsCacheConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- CloudRunConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ DnsCacheConfig.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a CloudRunConfig message from the specified reader or buffer.
+ * Decodes a DnsCacheConfig message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.CloudRunConfig
+ * @memberof google.container.v1.DnsCacheConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.CloudRunConfig} CloudRunConfig
+ * @returns {google.container.v1.DnsCacheConfig} DnsCacheConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- CloudRunConfig.decode = function decode(reader, length) {
+ DnsCacheConfig.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.CloudRunConfig();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DnsCacheConfig();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.disabled = reader.bool();
+ message.enabled = reader.bool();
break;
default:
reader.skipType(tag & 7);
@@ -4375,109 +4605,107 @@
};
/**
- * Decodes a CloudRunConfig message from the specified reader or buffer, length delimited.
+ * Decodes a DnsCacheConfig message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.CloudRunConfig
+ * @memberof google.container.v1.DnsCacheConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.CloudRunConfig} CloudRunConfig
+ * @returns {google.container.v1.DnsCacheConfig} DnsCacheConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- CloudRunConfig.decodeDelimited = function decodeDelimited(reader) {
+ DnsCacheConfig.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a CloudRunConfig message.
+ * Verifies a DnsCacheConfig message.
* @function verify
- * @memberof google.container.v1.CloudRunConfig
+ * @memberof google.container.v1.DnsCacheConfig
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- CloudRunConfig.verify = function verify(message) {
+ DnsCacheConfig.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.disabled != null && message.hasOwnProperty("disabled"))
- if (typeof message.disabled !== "boolean")
- return "disabled: boolean expected";
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ if (typeof message.enabled !== "boolean")
+ return "enabled: boolean expected";
return null;
};
/**
- * Creates a CloudRunConfig message from a plain object. Also converts values to their respective internal types.
+ * Creates a DnsCacheConfig message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.CloudRunConfig
+ * @memberof google.container.v1.DnsCacheConfig
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.CloudRunConfig} CloudRunConfig
+ * @returns {google.container.v1.DnsCacheConfig} DnsCacheConfig
*/
- CloudRunConfig.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.CloudRunConfig)
+ DnsCacheConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.DnsCacheConfig)
return object;
- var message = new $root.google.container.v1.CloudRunConfig();
- if (object.disabled != null)
- message.disabled = Boolean(object.disabled);
+ var message = new $root.google.container.v1.DnsCacheConfig();
+ if (object.enabled != null)
+ message.enabled = Boolean(object.enabled);
return message;
};
/**
- * Creates a plain object from a CloudRunConfig message. Also converts values to other types if specified.
+ * Creates a plain object from a DnsCacheConfig message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.CloudRunConfig
+ * @memberof google.container.v1.DnsCacheConfig
* @static
- * @param {google.container.v1.CloudRunConfig} message CloudRunConfig
+ * @param {google.container.v1.DnsCacheConfig} message DnsCacheConfig
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- CloudRunConfig.toObject = function toObject(message, options) {
+ DnsCacheConfig.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults)
- object.disabled = false;
- if (message.disabled != null && message.hasOwnProperty("disabled"))
- object.disabled = message.disabled;
+ object.enabled = false;
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ object.enabled = message.enabled;
return object;
};
/**
- * Converts this CloudRunConfig to JSON.
+ * Converts this DnsCacheConfig to JSON.
* @function toJSON
- * @memberof google.container.v1.CloudRunConfig
+ * @memberof google.container.v1.DnsCacheConfig
* @instance
* @returns {Object.} JSON object
*/
- CloudRunConfig.prototype.toJSON = function toJSON() {
+ DnsCacheConfig.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return CloudRunConfig;
+ return DnsCacheConfig;
})();
- v1.MasterAuthorizedNetworksConfig = (function() {
+ v1.PrivateClusterMasterGlobalAccessConfig = (function() {
/**
- * Properties of a MasterAuthorizedNetworksConfig.
+ * Properties of a PrivateClusterMasterGlobalAccessConfig.
* @memberof google.container.v1
- * @interface IMasterAuthorizedNetworksConfig
- * @property {boolean|null} [enabled] MasterAuthorizedNetworksConfig enabled
- * @property {Array.|null} [cidrBlocks] MasterAuthorizedNetworksConfig cidrBlocks
+ * @interface IPrivateClusterMasterGlobalAccessConfig
+ * @property {boolean|null} [enabled] PrivateClusterMasterGlobalAccessConfig enabled
*/
/**
- * Constructs a new MasterAuthorizedNetworksConfig.
+ * Constructs a new PrivateClusterMasterGlobalAccessConfig.
* @memberof google.container.v1
- * @classdesc Represents a MasterAuthorizedNetworksConfig.
- * @implements IMasterAuthorizedNetworksConfig
+ * @classdesc Represents a PrivateClusterMasterGlobalAccessConfig.
+ * @implements IPrivateClusterMasterGlobalAccessConfig
* @constructor
- * @param {google.container.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set
+ * @param {google.container.v1.IPrivateClusterMasterGlobalAccessConfig=} [properties] Properties to set
*/
- function MasterAuthorizedNetworksConfig(properties) {
- this.cidrBlocks = [];
+ function PrivateClusterMasterGlobalAccessConfig(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -4485,92 +4713,76 @@
}
/**
- * MasterAuthorizedNetworksConfig enabled.
+ * PrivateClusterMasterGlobalAccessConfig enabled.
* @member {boolean} enabled
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig
- * @instance
- */
- MasterAuthorizedNetworksConfig.prototype.enabled = false;
-
- /**
- * MasterAuthorizedNetworksConfig cidrBlocks.
- * @member {Array.} cidrBlocks
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig
* @instance
*/
- MasterAuthorizedNetworksConfig.prototype.cidrBlocks = $util.emptyArray;
+ PrivateClusterMasterGlobalAccessConfig.prototype.enabled = false;
/**
- * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties.
+ * Creates a new PrivateClusterMasterGlobalAccessConfig instance using the specified properties.
* @function create
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig
* @static
- * @param {google.container.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set
- * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig instance
+ * @param {google.container.v1.IPrivateClusterMasterGlobalAccessConfig=} [properties] Properties to set
+ * @returns {google.container.v1.PrivateClusterMasterGlobalAccessConfig} PrivateClusterMasterGlobalAccessConfig instance
*/
- MasterAuthorizedNetworksConfig.create = function create(properties) {
- return new MasterAuthorizedNetworksConfig(properties);
+ PrivateClusterMasterGlobalAccessConfig.create = function create(properties) {
+ return new PrivateClusterMasterGlobalAccessConfig(properties);
};
/**
- * Encodes the specified MasterAuthorizedNetworksConfig message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages.
+ * Encodes the specified PrivateClusterMasterGlobalAccessConfig message. Does not implicitly {@link google.container.v1.PrivateClusterMasterGlobalAccessConfig.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig
* @static
- * @param {google.container.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig message or plain object to encode
+ * @param {google.container.v1.IPrivateClusterMasterGlobalAccessConfig} message PrivateClusterMasterGlobalAccessConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- MasterAuthorizedNetworksConfig.encode = function encode(message, writer) {
+ PrivateClusterMasterGlobalAccessConfig.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
- if (message.cidrBlocks != null && message.cidrBlocks.length)
- for (var i = 0; i < message.cidrBlocks.length; ++i)
- $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.encode(message.cidrBlocks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
return writer;
};
/**
- * Encodes the specified MasterAuthorizedNetworksConfig message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages.
+ * Encodes the specified PrivateClusterMasterGlobalAccessConfig message, length delimited. Does not implicitly {@link google.container.v1.PrivateClusterMasterGlobalAccessConfig.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig
* @static
- * @param {google.container.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig message or plain object to encode
+ * @param {google.container.v1.IPrivateClusterMasterGlobalAccessConfig} message PrivateClusterMasterGlobalAccessConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- MasterAuthorizedNetworksConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ PrivateClusterMasterGlobalAccessConfig.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer.
+ * Decodes a PrivateClusterMasterGlobalAccessConfig message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig
+ * @returns {google.container.v1.PrivateClusterMasterGlobalAccessConfig} PrivateClusterMasterGlobalAccessConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- MasterAuthorizedNetworksConfig.decode = function decode(reader, length) {
+ PrivateClusterMasterGlobalAccessConfig.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.MasterAuthorizedNetworksConfig();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.enabled = reader.bool();
break;
- case 2:
- if (!(message.cidrBlocks && message.cidrBlocks.length))
- message.cidrBlocks = [];
- message.cidrBlocks.push($root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.decode(reader, reader.uint32()));
- break;
default:
reader.skipType(tag & 7);
break;
@@ -4580,343 +4792,113 @@
};
/**
- * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer, length delimited.
+ * Decodes a PrivateClusterMasterGlobalAccessConfig message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig
+ * @returns {google.container.v1.PrivateClusterMasterGlobalAccessConfig} PrivateClusterMasterGlobalAccessConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- MasterAuthorizedNetworksConfig.decodeDelimited = function decodeDelimited(reader) {
+ PrivateClusterMasterGlobalAccessConfig.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a MasterAuthorizedNetworksConfig message.
+ * Verifies a PrivateClusterMasterGlobalAccessConfig message.
* @function verify
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- MasterAuthorizedNetworksConfig.verify = function verify(message) {
+ PrivateClusterMasterGlobalAccessConfig.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.enabled != null && message.hasOwnProperty("enabled"))
if (typeof message.enabled !== "boolean")
return "enabled: boolean expected";
- if (message.cidrBlocks != null && message.hasOwnProperty("cidrBlocks")) {
- if (!Array.isArray(message.cidrBlocks))
- return "cidrBlocks: array expected";
- for (var i = 0; i < message.cidrBlocks.length; ++i) {
- var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify(message.cidrBlocks[i]);
- if (error)
- return "cidrBlocks." + error;
- }
- }
return null;
};
/**
- * Creates a MasterAuthorizedNetworksConfig message from a plain object. Also converts values to their respective internal types.
+ * Creates a PrivateClusterMasterGlobalAccessConfig message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig
+ * @returns {google.container.v1.PrivateClusterMasterGlobalAccessConfig} PrivateClusterMasterGlobalAccessConfig
*/
- MasterAuthorizedNetworksConfig.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.MasterAuthorizedNetworksConfig)
+ PrivateClusterMasterGlobalAccessConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig)
return object;
- var message = new $root.google.container.v1.MasterAuthorizedNetworksConfig();
+ var message = new $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig();
if (object.enabled != null)
message.enabled = Boolean(object.enabled);
- if (object.cidrBlocks) {
- if (!Array.isArray(object.cidrBlocks))
- throw TypeError(".google.container.v1.MasterAuthorizedNetworksConfig.cidrBlocks: array expected");
- message.cidrBlocks = [];
- for (var i = 0; i < object.cidrBlocks.length; ++i) {
- if (typeof object.cidrBlocks[i] !== "object")
- throw TypeError(".google.container.v1.MasterAuthorizedNetworksConfig.cidrBlocks: object expected");
- message.cidrBlocks[i] = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.fromObject(object.cidrBlocks[i]);
- }
- }
return message;
};
/**
- * Creates a plain object from a MasterAuthorizedNetworksConfig message. Also converts values to other types if specified.
+ * Creates a plain object from a PrivateClusterMasterGlobalAccessConfig message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig
* @static
- * @param {google.container.v1.MasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig
+ * @param {google.container.v1.PrivateClusterMasterGlobalAccessConfig} message PrivateClusterMasterGlobalAccessConfig
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- MasterAuthorizedNetworksConfig.toObject = function toObject(message, options) {
+ PrivateClusterMasterGlobalAccessConfig.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.arrays || options.defaults)
- object.cidrBlocks = [];
if (options.defaults)
object.enabled = false;
if (message.enabled != null && message.hasOwnProperty("enabled"))
object.enabled = message.enabled;
- if (message.cidrBlocks && message.cidrBlocks.length) {
- object.cidrBlocks = [];
- for (var j = 0; j < message.cidrBlocks.length; ++j)
- object.cidrBlocks[j] = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.toObject(message.cidrBlocks[j], options);
- }
return object;
};
/**
- * Converts this MasterAuthorizedNetworksConfig to JSON.
+ * Converts this PrivateClusterMasterGlobalAccessConfig to JSON.
* @function toJSON
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig
* @instance
* @returns {Object.} JSON object
*/
- MasterAuthorizedNetworksConfig.prototype.toJSON = function toJSON() {
+ PrivateClusterMasterGlobalAccessConfig.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- MasterAuthorizedNetworksConfig.CidrBlock = (function() {
-
- /**
- * Properties of a CidrBlock.
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig
- * @interface ICidrBlock
- * @property {string|null} [displayName] CidrBlock displayName
- * @property {string|null} [cidrBlock] CidrBlock cidrBlock
- */
-
- /**
- * Constructs a new CidrBlock.
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig
- * @classdesc Represents a CidrBlock.
- * @implements ICidrBlock
- * @constructor
- * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock=} [properties] Properties to set
- */
- function CidrBlock(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]];
- }
-
- /**
- * CidrBlock displayName.
- * @member {string} displayName
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
- * @instance
- */
- CidrBlock.prototype.displayName = "";
-
- /**
- * CidrBlock cidrBlock.
- * @member {string} cidrBlock
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
- * @instance
- */
- CidrBlock.prototype.cidrBlock = "";
-
- /**
- * Creates a new CidrBlock instance using the specified properties.
- * @function create
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
- * @static
- * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock=} [properties] Properties to set
- * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock instance
- */
- CidrBlock.create = function create(properties) {
- return new CidrBlock(properties);
- };
-
- /**
- * Encodes the specified CidrBlock message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages.
- * @function encode
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
- * @static
- * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock} message CidrBlock message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CidrBlock.encode = function encode(message, writer) {
- if (!writer)
- writer = $Writer.create();
- if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName);
- if (message.cidrBlock != null && Object.hasOwnProperty.call(message, "cidrBlock"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.cidrBlock);
- return writer;
- };
-
- /**
- * Encodes the specified CidrBlock message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages.
- * @function encodeDelimited
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
- * @static
- * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock} message CidrBlock message or plain object to encode
- * @param {$protobuf.Writer} [writer] Writer to encode to
- * @returns {$protobuf.Writer} Writer
- */
- CidrBlock.encodeDelimited = function encodeDelimited(message, writer) {
- return this.encode(message, writer).ldelim();
- };
-
- /**
- * Decodes a CidrBlock message from the specified reader or buffer.
- * @function decode
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CidrBlock.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.MasterAuthorizedNetworksConfig.CidrBlock();
- while (reader.pos < end) {
- var tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- message.displayName = reader.string();
- break;
- case 2:
- message.cidrBlock = reader.string();
- break;
- default:
- reader.skipType(tag & 7);
- break;
- }
- }
- return message;
- };
-
- /**
- * Decodes a CidrBlock message from the specified reader or buffer, length delimited.
- * @function decodeDelimited
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
- * @static
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock
- * @throws {Error} If the payload is not a reader or valid buffer
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
- */
- CidrBlock.decodeDelimited = function decodeDelimited(reader) {
- if (!(reader instanceof $Reader))
- reader = new $Reader(reader);
- return this.decode(reader, reader.uint32());
- };
-
- /**
- * Verifies a CidrBlock message.
- * @function verify
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
- * @static
- * @param {Object.} message Plain object to verify
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
- */
- CidrBlock.verify = function verify(message) {
- if (typeof message !== "object" || message === null)
- return "object expected";
- if (message.displayName != null && message.hasOwnProperty("displayName"))
- if (!$util.isString(message.displayName))
- return "displayName: string expected";
- if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock"))
- if (!$util.isString(message.cidrBlock))
- return "cidrBlock: string expected";
- return null;
- };
-
- /**
- * Creates a CidrBlock message from a plain object. Also converts values to their respective internal types.
- * @function fromObject
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
- * @static
- * @param {Object.} object Plain object
- * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock
- */
- CidrBlock.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock)
- return object;
- var message = new $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock();
- if (object.displayName != null)
- message.displayName = String(object.displayName);
- if (object.cidrBlock != null)
- message.cidrBlock = String(object.cidrBlock);
- return message;
- };
-
- /**
- * Creates a plain object from a CidrBlock message. Also converts values to other types if specified.
- * @function toObject
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
- * @static
- * @param {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} message CidrBlock
- * @param {$protobuf.IConversionOptions} [options] Conversion options
- * @returns {Object.} Plain object
- */
- CidrBlock.toObject = function toObject(message, options) {
- if (!options)
- options = {};
- var object = {};
- if (options.defaults) {
- object.displayName = "";
- object.cidrBlock = "";
- }
- if (message.displayName != null && message.hasOwnProperty("displayName"))
- object.displayName = message.displayName;
- if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock"))
- object.cidrBlock = message.cidrBlock;
- return object;
- };
-
- /**
- * Converts this CidrBlock to JSON.
- * @function toJSON
- * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
- * @instance
- * @returns {Object.} JSON object
- */
- CidrBlock.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- return CidrBlock;
- })();
-
- return MasterAuthorizedNetworksConfig;
+ return PrivateClusterMasterGlobalAccessConfig;
})();
- v1.LegacyAbac = (function() {
+ v1.PrivateClusterConfig = (function() {
/**
- * Properties of a LegacyAbac.
+ * Properties of a PrivateClusterConfig.
* @memberof google.container.v1
- * @interface ILegacyAbac
- * @property {boolean|null} [enabled] LegacyAbac enabled
+ * @interface IPrivateClusterConfig
+ * @property {boolean|null} [enablePrivateNodes] PrivateClusterConfig enablePrivateNodes
+ * @property {boolean|null} [enablePrivateEndpoint] PrivateClusterConfig enablePrivateEndpoint
+ * @property {string|null} [masterIpv4CidrBlock] PrivateClusterConfig masterIpv4CidrBlock
+ * @property {string|null} [privateEndpoint] PrivateClusterConfig privateEndpoint
+ * @property {string|null} [publicEndpoint] PrivateClusterConfig publicEndpoint
+ * @property {string|null} [peeringName] PrivateClusterConfig peeringName
+ * @property {google.container.v1.IPrivateClusterMasterGlobalAccessConfig|null} [masterGlobalAccessConfig] PrivateClusterConfig masterGlobalAccessConfig
*/
/**
- * Constructs a new LegacyAbac.
+ * Constructs a new PrivateClusterConfig.
* @memberof google.container.v1
- * @classdesc Represents a LegacyAbac.
- * @implements ILegacyAbac
+ * @classdesc Represents a PrivateClusterConfig.
+ * @implements IPrivateClusterConfig
* @constructor
- * @param {google.container.v1.ILegacyAbac=} [properties] Properties to set
+ * @param {google.container.v1.IPrivateClusterConfig=} [properties] Properties to set
*/
- function LegacyAbac(properties) {
+ function PrivateClusterConfig(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -4924,75 +4906,153 @@
}
/**
- * LegacyAbac enabled.
- * @member {boolean} enabled
- * @memberof google.container.v1.LegacyAbac
+ * PrivateClusterConfig enablePrivateNodes.
+ * @member {boolean} enablePrivateNodes
+ * @memberof google.container.v1.PrivateClusterConfig
* @instance
*/
- LegacyAbac.prototype.enabled = false;
+ PrivateClusterConfig.prototype.enablePrivateNodes = false;
/**
- * Creates a new LegacyAbac instance using the specified properties.
+ * PrivateClusterConfig enablePrivateEndpoint.
+ * @member {boolean} enablePrivateEndpoint
+ * @memberof google.container.v1.PrivateClusterConfig
+ * @instance
+ */
+ PrivateClusterConfig.prototype.enablePrivateEndpoint = false;
+
+ /**
+ * PrivateClusterConfig masterIpv4CidrBlock.
+ * @member {string} masterIpv4CidrBlock
+ * @memberof google.container.v1.PrivateClusterConfig
+ * @instance
+ */
+ PrivateClusterConfig.prototype.masterIpv4CidrBlock = "";
+
+ /**
+ * PrivateClusterConfig privateEndpoint.
+ * @member {string} privateEndpoint
+ * @memberof google.container.v1.PrivateClusterConfig
+ * @instance
+ */
+ PrivateClusterConfig.prototype.privateEndpoint = "";
+
+ /**
+ * PrivateClusterConfig publicEndpoint.
+ * @member {string} publicEndpoint
+ * @memberof google.container.v1.PrivateClusterConfig
+ * @instance
+ */
+ PrivateClusterConfig.prototype.publicEndpoint = "";
+
+ /**
+ * PrivateClusterConfig peeringName.
+ * @member {string} peeringName
+ * @memberof google.container.v1.PrivateClusterConfig
+ * @instance
+ */
+ PrivateClusterConfig.prototype.peeringName = "";
+
+ /**
+ * PrivateClusterConfig masterGlobalAccessConfig.
+ * @member {google.container.v1.IPrivateClusterMasterGlobalAccessConfig|null|undefined} masterGlobalAccessConfig
+ * @memberof google.container.v1.PrivateClusterConfig
+ * @instance
+ */
+ PrivateClusterConfig.prototype.masterGlobalAccessConfig = null;
+
+ /**
+ * Creates a new PrivateClusterConfig instance using the specified properties.
* @function create
- * @memberof google.container.v1.LegacyAbac
+ * @memberof google.container.v1.PrivateClusterConfig
* @static
- * @param {google.container.v1.ILegacyAbac=} [properties] Properties to set
- * @returns {google.container.v1.LegacyAbac} LegacyAbac instance
+ * @param {google.container.v1.IPrivateClusterConfig=} [properties] Properties to set
+ * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig instance
*/
- LegacyAbac.create = function create(properties) {
- return new LegacyAbac(properties);
+ PrivateClusterConfig.create = function create(properties) {
+ return new PrivateClusterConfig(properties);
};
/**
- * Encodes the specified LegacyAbac message. Does not implicitly {@link google.container.v1.LegacyAbac.verify|verify} messages.
+ * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.LegacyAbac
+ * @memberof google.container.v1.PrivateClusterConfig
* @static
- * @param {google.container.v1.ILegacyAbac} message LegacyAbac message or plain object to encode
+ * @param {google.container.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- LegacyAbac.encode = function encode(message, writer) {
+ PrivateClusterConfig.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
+ if (message.enablePrivateNodes != null && Object.hasOwnProperty.call(message, "enablePrivateNodes"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateNodes);
+ if (message.enablePrivateEndpoint != null && Object.hasOwnProperty.call(message, "enablePrivateEndpoint"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enablePrivateEndpoint);
+ if (message.masterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "masterIpv4CidrBlock"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4CidrBlock);
+ if (message.privateEndpoint != null && Object.hasOwnProperty.call(message, "privateEndpoint"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.privateEndpoint);
+ if (message.publicEndpoint != null && Object.hasOwnProperty.call(message, "publicEndpoint"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicEndpoint);
+ if (message.peeringName != null && Object.hasOwnProperty.call(message, "peeringName"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.peeringName);
+ if (message.masterGlobalAccessConfig != null && Object.hasOwnProperty.call(message, "masterGlobalAccessConfig"))
+ $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.encode(message.masterGlobalAccessConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
return writer;
};
/**
- * Encodes the specified LegacyAbac message, length delimited. Does not implicitly {@link google.container.v1.LegacyAbac.verify|verify} messages.
+ * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.LegacyAbac
+ * @memberof google.container.v1.PrivateClusterConfig
* @static
- * @param {google.container.v1.ILegacyAbac} message LegacyAbac message or plain object to encode
+ * @param {google.container.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- LegacyAbac.encodeDelimited = function encodeDelimited(message, writer) {
+ PrivateClusterConfig.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a LegacyAbac message from the specified reader or buffer.
+ * Decodes a PrivateClusterConfig message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.LegacyAbac
+ * @memberof google.container.v1.PrivateClusterConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.LegacyAbac} LegacyAbac
+ * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- LegacyAbac.decode = function decode(reader, length) {
+ PrivateClusterConfig.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.LegacyAbac();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.PrivateClusterConfig();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.enabled = reader.bool();
+ message.enablePrivateNodes = reader.bool();
+ break;
+ case 2:
+ message.enablePrivateEndpoint = reader.bool();
+ break;
+ case 3:
+ message.masterIpv4CidrBlock = reader.string();
+ break;
+ case 4:
+ message.privateEndpoint = reader.string();
+ break;
+ case 5:
+ message.publicEndpoint = reader.string();
+ break;
+ case 7:
+ message.peeringName = reader.string();
+ break;
+ case 8:
+ message.masterGlobalAccessConfig = $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.decode(reader, reader.uint32());
break;
default:
reader.skipType(tag & 7);
@@ -5003,108 +5063,162 @@
};
/**
- * Decodes a LegacyAbac message from the specified reader or buffer, length delimited.
+ * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.LegacyAbac
+ * @memberof google.container.v1.PrivateClusterConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.LegacyAbac} LegacyAbac
+ * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- LegacyAbac.decodeDelimited = function decodeDelimited(reader) {
+ PrivateClusterConfig.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a LegacyAbac message.
+ * Verifies a PrivateClusterConfig message.
* @function verify
- * @memberof google.container.v1.LegacyAbac
+ * @memberof google.container.v1.PrivateClusterConfig
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- LegacyAbac.verify = function verify(message) {
+ PrivateClusterConfig.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.enabled != null && message.hasOwnProperty("enabled"))
- if (typeof message.enabled !== "boolean")
- return "enabled: boolean expected";
+ if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes"))
+ if (typeof message.enablePrivateNodes !== "boolean")
+ return "enablePrivateNodes: boolean expected";
+ if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint"))
+ if (typeof message.enablePrivateEndpoint !== "boolean")
+ return "enablePrivateEndpoint: boolean expected";
+ if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock"))
+ if (!$util.isString(message.masterIpv4CidrBlock))
+ return "masterIpv4CidrBlock: string expected";
+ if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint"))
+ if (!$util.isString(message.privateEndpoint))
+ return "privateEndpoint: string expected";
+ if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint"))
+ if (!$util.isString(message.publicEndpoint))
+ return "publicEndpoint: string expected";
+ if (message.peeringName != null && message.hasOwnProperty("peeringName"))
+ if (!$util.isString(message.peeringName))
+ return "peeringName: string expected";
+ if (message.masterGlobalAccessConfig != null && message.hasOwnProperty("masterGlobalAccessConfig")) {
+ var error = $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.verify(message.masterGlobalAccessConfig);
+ if (error)
+ return "masterGlobalAccessConfig." + error;
+ }
return null;
};
/**
- * Creates a LegacyAbac message from a plain object. Also converts values to their respective internal types.
+ * Creates a PrivateClusterConfig message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.LegacyAbac
+ * @memberof google.container.v1.PrivateClusterConfig
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.LegacyAbac} LegacyAbac
+ * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig
*/
- LegacyAbac.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.LegacyAbac)
+ PrivateClusterConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.PrivateClusterConfig)
return object;
- var message = new $root.google.container.v1.LegacyAbac();
- if (object.enabled != null)
- message.enabled = Boolean(object.enabled);
+ var message = new $root.google.container.v1.PrivateClusterConfig();
+ if (object.enablePrivateNodes != null)
+ message.enablePrivateNodes = Boolean(object.enablePrivateNodes);
+ if (object.enablePrivateEndpoint != null)
+ message.enablePrivateEndpoint = Boolean(object.enablePrivateEndpoint);
+ if (object.masterIpv4CidrBlock != null)
+ message.masterIpv4CidrBlock = String(object.masterIpv4CidrBlock);
+ if (object.privateEndpoint != null)
+ message.privateEndpoint = String(object.privateEndpoint);
+ if (object.publicEndpoint != null)
+ message.publicEndpoint = String(object.publicEndpoint);
+ if (object.peeringName != null)
+ message.peeringName = String(object.peeringName);
+ if (object.masterGlobalAccessConfig != null) {
+ if (typeof object.masterGlobalAccessConfig !== "object")
+ throw TypeError(".google.container.v1.PrivateClusterConfig.masterGlobalAccessConfig: object expected");
+ message.masterGlobalAccessConfig = $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.fromObject(object.masterGlobalAccessConfig);
+ }
return message;
};
/**
- * Creates a plain object from a LegacyAbac message. Also converts values to other types if specified.
+ * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.LegacyAbac
+ * @memberof google.container.v1.PrivateClusterConfig
* @static
- * @param {google.container.v1.LegacyAbac} message LegacyAbac
+ * @param {google.container.v1.PrivateClusterConfig} message PrivateClusterConfig
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- LegacyAbac.toObject = function toObject(message, options) {
+ PrivateClusterConfig.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.defaults)
- object.enabled = false;
- if (message.enabled != null && message.hasOwnProperty("enabled"))
- object.enabled = message.enabled;
+ if (options.defaults) {
+ object.enablePrivateNodes = false;
+ object.enablePrivateEndpoint = false;
+ object.masterIpv4CidrBlock = "";
+ object.privateEndpoint = "";
+ object.publicEndpoint = "";
+ object.peeringName = "";
+ object.masterGlobalAccessConfig = null;
+ }
+ if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes"))
+ object.enablePrivateNodes = message.enablePrivateNodes;
+ if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint"))
+ object.enablePrivateEndpoint = message.enablePrivateEndpoint;
+ if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock"))
+ object.masterIpv4CidrBlock = message.masterIpv4CidrBlock;
+ if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint"))
+ object.privateEndpoint = message.privateEndpoint;
+ if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint"))
+ object.publicEndpoint = message.publicEndpoint;
+ if (message.peeringName != null && message.hasOwnProperty("peeringName"))
+ object.peeringName = message.peeringName;
+ if (message.masterGlobalAccessConfig != null && message.hasOwnProperty("masterGlobalAccessConfig"))
+ object.masterGlobalAccessConfig = $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.toObject(message.masterGlobalAccessConfig, options);
return object;
};
/**
- * Converts this LegacyAbac to JSON.
+ * Converts this PrivateClusterConfig to JSON.
* @function toJSON
- * @memberof google.container.v1.LegacyAbac
+ * @memberof google.container.v1.PrivateClusterConfig
* @instance
* @returns {Object.} JSON object
*/
- LegacyAbac.prototype.toJSON = function toJSON() {
+ PrivateClusterConfig.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return LegacyAbac;
+ return PrivateClusterConfig;
})();
- v1.NetworkPolicy = (function() {
+ v1.AuthenticatorGroupsConfig = (function() {
/**
- * Properties of a NetworkPolicy.
+ * Properties of an AuthenticatorGroupsConfig.
* @memberof google.container.v1
- * @interface INetworkPolicy
- * @property {google.container.v1.NetworkPolicy.Provider|null} [provider] NetworkPolicy provider
- * @property {boolean|null} [enabled] NetworkPolicy enabled
+ * @interface IAuthenticatorGroupsConfig
+ * @property {boolean|null} [enabled] AuthenticatorGroupsConfig enabled
+ * @property {string|null} [securityGroup] AuthenticatorGroupsConfig securityGroup
*/
/**
- * Constructs a new NetworkPolicy.
+ * Constructs a new AuthenticatorGroupsConfig.
* @memberof google.container.v1
- * @classdesc Represents a NetworkPolicy.
- * @implements INetworkPolicy
+ * @classdesc Represents an AuthenticatorGroupsConfig.
+ * @implements IAuthenticatorGroupsConfig
* @constructor
- * @param {google.container.v1.INetworkPolicy=} [properties] Properties to set
+ * @param {google.container.v1.IAuthenticatorGroupsConfig=} [properties] Properties to set
*/
- function NetworkPolicy(properties) {
+ function AuthenticatorGroupsConfig(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -5112,88 +5226,88 @@
}
/**
- * NetworkPolicy provider.
- * @member {google.container.v1.NetworkPolicy.Provider} provider
- * @memberof google.container.v1.NetworkPolicy
+ * AuthenticatorGroupsConfig enabled.
+ * @member {boolean} enabled
+ * @memberof google.container.v1.AuthenticatorGroupsConfig
* @instance
*/
- NetworkPolicy.prototype.provider = 0;
+ AuthenticatorGroupsConfig.prototype.enabled = false;
/**
- * NetworkPolicy enabled.
- * @member {boolean} enabled
- * @memberof google.container.v1.NetworkPolicy
+ * AuthenticatorGroupsConfig securityGroup.
+ * @member {string} securityGroup
+ * @memberof google.container.v1.AuthenticatorGroupsConfig
* @instance
*/
- NetworkPolicy.prototype.enabled = false;
+ AuthenticatorGroupsConfig.prototype.securityGroup = "";
/**
- * Creates a new NetworkPolicy instance using the specified properties.
+ * Creates a new AuthenticatorGroupsConfig instance using the specified properties.
* @function create
- * @memberof google.container.v1.NetworkPolicy
+ * @memberof google.container.v1.AuthenticatorGroupsConfig
* @static
- * @param {google.container.v1.INetworkPolicy=} [properties] Properties to set
- * @returns {google.container.v1.NetworkPolicy} NetworkPolicy instance
+ * @param {google.container.v1.IAuthenticatorGroupsConfig=} [properties] Properties to set
+ * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig instance
*/
- NetworkPolicy.create = function create(properties) {
- return new NetworkPolicy(properties);
+ AuthenticatorGroupsConfig.create = function create(properties) {
+ return new AuthenticatorGroupsConfig(properties);
};
/**
- * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.container.v1.NetworkPolicy.verify|verify} messages.
+ * Encodes the specified AuthenticatorGroupsConfig message. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.NetworkPolicy
+ * @memberof google.container.v1.AuthenticatorGroupsConfig
* @static
- * @param {google.container.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode
+ * @param {google.container.v1.IAuthenticatorGroupsConfig} message AuthenticatorGroupsConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- NetworkPolicy.encode = function encode(message, writer) {
+ AuthenticatorGroupsConfig.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.provider != null && Object.hasOwnProperty.call(message, "provider"))
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.provider);
if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled);
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
+ if (message.securityGroup != null && Object.hasOwnProperty.call(message, "securityGroup"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.securityGroup);
return writer;
};
/**
- * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.container.v1.NetworkPolicy.verify|verify} messages.
+ * Encodes the specified AuthenticatorGroupsConfig message, length delimited. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.NetworkPolicy
+ * @memberof google.container.v1.AuthenticatorGroupsConfig
* @static
- * @param {google.container.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode
+ * @param {google.container.v1.IAuthenticatorGroupsConfig} message AuthenticatorGroupsConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) {
+ AuthenticatorGroupsConfig.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a NetworkPolicy message from the specified reader or buffer.
+ * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.NetworkPolicy
+ * @memberof google.container.v1.AuthenticatorGroupsConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.NetworkPolicy} NetworkPolicy
+ * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- NetworkPolicy.decode = function decode(reader, length) {
+ AuthenticatorGroupsConfig.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.NetworkPolicy();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AuthenticatorGroupsConfig();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.provider = reader.int32();
+ message.enabled = reader.bool();
break;
case 2:
- message.enabled = reader.bool();
+ message.securityGroup = reader.string();
break;
default:
reader.skipType(tag & 7);
@@ -5204,143 +5318,117 @@
};
/**
- * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited.
+ * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.NetworkPolicy
+ * @memberof google.container.v1.AuthenticatorGroupsConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.NetworkPolicy} NetworkPolicy
+ * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- NetworkPolicy.decodeDelimited = function decodeDelimited(reader) {
+ AuthenticatorGroupsConfig.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a NetworkPolicy message.
+ * Verifies an AuthenticatorGroupsConfig message.
* @function verify
- * @memberof google.container.v1.NetworkPolicy
+ * @memberof google.container.v1.AuthenticatorGroupsConfig
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- NetworkPolicy.verify = function verify(message) {
+ AuthenticatorGroupsConfig.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.provider != null && message.hasOwnProperty("provider"))
- switch (message.provider) {
- default:
- return "provider: enum value expected";
- case 0:
- case 1:
- break;
- }
if (message.enabled != null && message.hasOwnProperty("enabled"))
if (typeof message.enabled !== "boolean")
return "enabled: boolean expected";
+ if (message.securityGroup != null && message.hasOwnProperty("securityGroup"))
+ if (!$util.isString(message.securityGroup))
+ return "securityGroup: string expected";
return null;
};
/**
- * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types.
+ * Creates an AuthenticatorGroupsConfig message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.NetworkPolicy
+ * @memberof google.container.v1.AuthenticatorGroupsConfig
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.NetworkPolicy} NetworkPolicy
+ * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig
*/
- NetworkPolicy.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.NetworkPolicy)
+ AuthenticatorGroupsConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.AuthenticatorGroupsConfig)
return object;
- var message = new $root.google.container.v1.NetworkPolicy();
- switch (object.provider) {
- case "PROVIDER_UNSPECIFIED":
- case 0:
- message.provider = 0;
- break;
- case "CALICO":
- case 1:
- message.provider = 1;
- break;
- }
+ var message = new $root.google.container.v1.AuthenticatorGroupsConfig();
if (object.enabled != null)
message.enabled = Boolean(object.enabled);
+ if (object.securityGroup != null)
+ message.securityGroup = String(object.securityGroup);
return message;
};
/**
- * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified.
+ * Creates a plain object from an AuthenticatorGroupsConfig message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.NetworkPolicy
+ * @memberof google.container.v1.AuthenticatorGroupsConfig
* @static
- * @param {google.container.v1.NetworkPolicy} message NetworkPolicy
+ * @param {google.container.v1.AuthenticatorGroupsConfig} message AuthenticatorGroupsConfig
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- NetworkPolicy.toObject = function toObject(message, options) {
+ AuthenticatorGroupsConfig.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
- object.provider = options.enums === String ? "PROVIDER_UNSPECIFIED" : 0;
object.enabled = false;
+ object.securityGroup = "";
}
- if (message.provider != null && message.hasOwnProperty("provider"))
- object.provider = options.enums === String ? $root.google.container.v1.NetworkPolicy.Provider[message.provider] : message.provider;
if (message.enabled != null && message.hasOwnProperty("enabled"))
object.enabled = message.enabled;
+ if (message.securityGroup != null && message.hasOwnProperty("securityGroup"))
+ object.securityGroup = message.securityGroup;
return object;
};
/**
- * Converts this NetworkPolicy to JSON.
+ * Converts this AuthenticatorGroupsConfig to JSON.
* @function toJSON
- * @memberof google.container.v1.NetworkPolicy
+ * @memberof google.container.v1.AuthenticatorGroupsConfig
* @instance
* @returns {Object.} JSON object
*/
- NetworkPolicy.prototype.toJSON = function toJSON() {
+ AuthenticatorGroupsConfig.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- /**
- * Provider enum.
- * @name google.container.v1.NetworkPolicy.Provider
- * @enum {number}
- * @property {number} PROVIDER_UNSPECIFIED=0 PROVIDER_UNSPECIFIED value
- * @property {number} CALICO=1 CALICO value
- */
- NetworkPolicy.Provider = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "PROVIDER_UNSPECIFIED"] = 0;
- values[valuesById[1] = "CALICO"] = 1;
- return values;
- })();
-
- return NetworkPolicy;
+ return AuthenticatorGroupsConfig;
})();
- v1.BinaryAuthorization = (function() {
+ v1.CloudRunConfig = (function() {
/**
- * Properties of a BinaryAuthorization.
+ * Properties of a CloudRunConfig.
* @memberof google.container.v1
- * @interface IBinaryAuthorization
- * @property {boolean|null} [enabled] BinaryAuthorization enabled
+ * @interface ICloudRunConfig
+ * @property {boolean|null} [disabled] CloudRunConfig disabled
+ * @property {google.container.v1.CloudRunConfig.LoadBalancerType|null} [loadBalancerType] CloudRunConfig loadBalancerType
*/
/**
- * Constructs a new BinaryAuthorization.
+ * Constructs a new CloudRunConfig.
* @memberof google.container.v1
- * @classdesc Represents a BinaryAuthorization.
- * @implements IBinaryAuthorization
+ * @classdesc Represents a CloudRunConfig.
+ * @implements ICloudRunConfig
* @constructor
- * @param {google.container.v1.IBinaryAuthorization=} [properties] Properties to set
+ * @param {google.container.v1.ICloudRunConfig=} [properties] Properties to set
*/
- function BinaryAuthorization(properties) {
+ function CloudRunConfig(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -5348,75 +5436,88 @@
}
/**
- * BinaryAuthorization enabled.
- * @member {boolean} enabled
- * @memberof google.container.v1.BinaryAuthorization
+ * CloudRunConfig disabled.
+ * @member {boolean} disabled
+ * @memberof google.container.v1.CloudRunConfig
* @instance
*/
- BinaryAuthorization.prototype.enabled = false;
+ CloudRunConfig.prototype.disabled = false;
/**
- * Creates a new BinaryAuthorization instance using the specified properties.
+ * CloudRunConfig loadBalancerType.
+ * @member {google.container.v1.CloudRunConfig.LoadBalancerType} loadBalancerType
+ * @memberof google.container.v1.CloudRunConfig
+ * @instance
+ */
+ CloudRunConfig.prototype.loadBalancerType = 0;
+
+ /**
+ * Creates a new CloudRunConfig instance using the specified properties.
* @function create
- * @memberof google.container.v1.BinaryAuthorization
+ * @memberof google.container.v1.CloudRunConfig
* @static
- * @param {google.container.v1.IBinaryAuthorization=} [properties] Properties to set
- * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization instance
+ * @param {google.container.v1.ICloudRunConfig=} [properties] Properties to set
+ * @returns {google.container.v1.CloudRunConfig} CloudRunConfig instance
*/
- BinaryAuthorization.create = function create(properties) {
- return new BinaryAuthorization(properties);
+ CloudRunConfig.create = function create(properties) {
+ return new CloudRunConfig(properties);
};
/**
- * Encodes the specified BinaryAuthorization message. Does not implicitly {@link google.container.v1.BinaryAuthorization.verify|verify} messages.
+ * Encodes the specified CloudRunConfig message. Does not implicitly {@link google.container.v1.CloudRunConfig.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.BinaryAuthorization
+ * @memberof google.container.v1.CloudRunConfig
* @static
- * @param {google.container.v1.IBinaryAuthorization} message BinaryAuthorization message or plain object to encode
+ * @param {google.container.v1.ICloudRunConfig} message CloudRunConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- BinaryAuthorization.encode = function encode(message, writer) {
+ CloudRunConfig.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
+ if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled);
+ if (message.loadBalancerType != null && Object.hasOwnProperty.call(message, "loadBalancerType"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.loadBalancerType);
return writer;
};
/**
- * Encodes the specified BinaryAuthorization message, length delimited. Does not implicitly {@link google.container.v1.BinaryAuthorization.verify|verify} messages.
+ * Encodes the specified CloudRunConfig message, length delimited. Does not implicitly {@link google.container.v1.CloudRunConfig.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.BinaryAuthorization
+ * @memberof google.container.v1.CloudRunConfig
* @static
- * @param {google.container.v1.IBinaryAuthorization} message BinaryAuthorization message or plain object to encode
+ * @param {google.container.v1.ICloudRunConfig} message CloudRunConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- BinaryAuthorization.encodeDelimited = function encodeDelimited(message, writer) {
+ CloudRunConfig.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a BinaryAuthorization message from the specified reader or buffer.
+ * Decodes a CloudRunConfig message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.BinaryAuthorization
+ * @memberof google.container.v1.CloudRunConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization
+ * @returns {google.container.v1.CloudRunConfig} CloudRunConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- BinaryAuthorization.decode = function decode(reader, length) {
+ CloudRunConfig.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.BinaryAuthorization();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CloudRunConfig();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.enabled = reader.bool();
+ message.disabled = reader.bool();
+ break;
+ case 3:
+ message.loadBalancerType = reader.int32();
break;
default:
reader.skipType(tag & 7);
@@ -5427,118 +5528,150 @@
};
/**
- * Decodes a BinaryAuthorization message from the specified reader or buffer, length delimited.
+ * Decodes a CloudRunConfig message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.BinaryAuthorization
+ * @memberof google.container.v1.CloudRunConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization
+ * @returns {google.container.v1.CloudRunConfig} CloudRunConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- BinaryAuthorization.decodeDelimited = function decodeDelimited(reader) {
+ CloudRunConfig.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a BinaryAuthorization message.
+ * Verifies a CloudRunConfig message.
* @function verify
- * @memberof google.container.v1.BinaryAuthorization
+ * @memberof google.container.v1.CloudRunConfig
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- BinaryAuthorization.verify = function verify(message) {
+ CloudRunConfig.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.enabled != null && message.hasOwnProperty("enabled"))
- if (typeof message.enabled !== "boolean")
- return "enabled: boolean expected";
+ if (message.disabled != null && message.hasOwnProperty("disabled"))
+ if (typeof message.disabled !== "boolean")
+ return "disabled: boolean expected";
+ if (message.loadBalancerType != null && message.hasOwnProperty("loadBalancerType"))
+ switch (message.loadBalancerType) {
+ default:
+ return "loadBalancerType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
return null;
};
/**
- * Creates a BinaryAuthorization message from a plain object. Also converts values to their respective internal types.
+ * Creates a CloudRunConfig message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.BinaryAuthorization
+ * @memberof google.container.v1.CloudRunConfig
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization
+ * @returns {google.container.v1.CloudRunConfig} CloudRunConfig
*/
- BinaryAuthorization.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.BinaryAuthorization)
+ CloudRunConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.CloudRunConfig)
return object;
- var message = new $root.google.container.v1.BinaryAuthorization();
- if (object.enabled != null)
- message.enabled = Boolean(object.enabled);
+ var message = new $root.google.container.v1.CloudRunConfig();
+ if (object.disabled != null)
+ message.disabled = Boolean(object.disabled);
+ switch (object.loadBalancerType) {
+ case "LOAD_BALANCER_TYPE_UNSPECIFIED":
+ case 0:
+ message.loadBalancerType = 0;
+ break;
+ case "LOAD_BALANCER_TYPE_EXTERNAL":
+ case 1:
+ message.loadBalancerType = 1;
+ break;
+ case "LOAD_BALANCER_TYPE_INTERNAL":
+ case 2:
+ message.loadBalancerType = 2;
+ break;
+ }
return message;
};
/**
- * Creates a plain object from a BinaryAuthorization message. Also converts values to other types if specified.
+ * Creates a plain object from a CloudRunConfig message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.BinaryAuthorization
+ * @memberof google.container.v1.CloudRunConfig
* @static
- * @param {google.container.v1.BinaryAuthorization} message BinaryAuthorization
+ * @param {google.container.v1.CloudRunConfig} message CloudRunConfig
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- BinaryAuthorization.toObject = function toObject(message, options) {
+ CloudRunConfig.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.defaults)
- object.enabled = false;
- if (message.enabled != null && message.hasOwnProperty("enabled"))
- object.enabled = message.enabled;
+ if (options.defaults) {
+ object.disabled = false;
+ object.loadBalancerType = options.enums === String ? "LOAD_BALANCER_TYPE_UNSPECIFIED" : 0;
+ }
+ if (message.disabled != null && message.hasOwnProperty("disabled"))
+ object.disabled = message.disabled;
+ if (message.loadBalancerType != null && message.hasOwnProperty("loadBalancerType"))
+ object.loadBalancerType = options.enums === String ? $root.google.container.v1.CloudRunConfig.LoadBalancerType[message.loadBalancerType] : message.loadBalancerType;
return object;
};
/**
- * Converts this BinaryAuthorization to JSON.
+ * Converts this CloudRunConfig to JSON.
* @function toJSON
- * @memberof google.container.v1.BinaryAuthorization
+ * @memberof google.container.v1.CloudRunConfig
* @instance
* @returns {Object.} JSON object
*/
- BinaryAuthorization.prototype.toJSON = function toJSON() {
+ CloudRunConfig.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return BinaryAuthorization;
+ /**
+ * LoadBalancerType enum.
+ * @name google.container.v1.CloudRunConfig.LoadBalancerType
+ * @enum {number}
+ * @property {number} LOAD_BALANCER_TYPE_UNSPECIFIED=0 LOAD_BALANCER_TYPE_UNSPECIFIED value
+ * @property {number} LOAD_BALANCER_TYPE_EXTERNAL=1 LOAD_BALANCER_TYPE_EXTERNAL value
+ * @property {number} LOAD_BALANCER_TYPE_INTERNAL=2 LOAD_BALANCER_TYPE_INTERNAL value
+ */
+ CloudRunConfig.LoadBalancerType = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "LOAD_BALANCER_TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "LOAD_BALANCER_TYPE_EXTERNAL"] = 1;
+ values[valuesById[2] = "LOAD_BALANCER_TYPE_INTERNAL"] = 2;
+ return values;
+ })();
+
+ return CloudRunConfig;
})();
- v1.IPAllocationPolicy = (function() {
+ v1.ConfigConnectorConfig = (function() {
/**
- * Properties of a IPAllocationPolicy.
+ * Properties of a ConfigConnectorConfig.
* @memberof google.container.v1
- * @interface IIPAllocationPolicy
- * @property {boolean|null} [useIpAliases] IPAllocationPolicy useIpAliases
- * @property {boolean|null} [createSubnetwork] IPAllocationPolicy createSubnetwork
- * @property {string|null} [subnetworkName] IPAllocationPolicy subnetworkName
- * @property {string|null} [clusterIpv4Cidr] IPAllocationPolicy clusterIpv4Cidr
- * @property {string|null} [nodeIpv4Cidr] IPAllocationPolicy nodeIpv4Cidr
- * @property {string|null} [servicesIpv4Cidr] IPAllocationPolicy servicesIpv4Cidr
- * @property {string|null} [clusterSecondaryRangeName] IPAllocationPolicy clusterSecondaryRangeName
- * @property {string|null} [servicesSecondaryRangeName] IPAllocationPolicy servicesSecondaryRangeName
- * @property {string|null} [clusterIpv4CidrBlock] IPAllocationPolicy clusterIpv4CidrBlock
- * @property {string|null} [nodeIpv4CidrBlock] IPAllocationPolicy nodeIpv4CidrBlock
- * @property {string|null} [servicesIpv4CidrBlock] IPAllocationPolicy servicesIpv4CidrBlock
- * @property {string|null} [tpuIpv4CidrBlock] IPAllocationPolicy tpuIpv4CidrBlock
+ * @interface IConfigConnectorConfig
+ * @property {boolean|null} [enabled] ConfigConnectorConfig enabled
*/
/**
- * Constructs a new IPAllocationPolicy.
+ * Constructs a new ConfigConnectorConfig.
* @memberof google.container.v1
- * @classdesc Represents a IPAllocationPolicy.
- * @implements IIPAllocationPolicy
+ * @classdesc Represents a ConfigConnectorConfig.
+ * @implements IConfigConnectorConfig
* @constructor
- * @param {google.container.v1.IIPAllocationPolicy=} [properties] Properties to set
+ * @param {google.container.v1.IConfigConnectorConfig=} [properties] Properties to set
*/
- function IPAllocationPolicy(properties) {
+ function ConfigConnectorConfig(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -5546,218 +5679,75 @@
}
/**
- * IPAllocationPolicy useIpAliases.
- * @member {boolean} useIpAliases
- * @memberof google.container.v1.IPAllocationPolicy
- * @instance
- */
- IPAllocationPolicy.prototype.useIpAliases = false;
-
- /**
- * IPAllocationPolicy createSubnetwork.
- * @member {boolean} createSubnetwork
- * @memberof google.container.v1.IPAllocationPolicy
- * @instance
- */
- IPAllocationPolicy.prototype.createSubnetwork = false;
-
- /**
- * IPAllocationPolicy subnetworkName.
- * @member {string} subnetworkName
- * @memberof google.container.v1.IPAllocationPolicy
- * @instance
- */
- IPAllocationPolicy.prototype.subnetworkName = "";
-
- /**
- * IPAllocationPolicy clusterIpv4Cidr.
- * @member {string} clusterIpv4Cidr
- * @memberof google.container.v1.IPAllocationPolicy
- * @instance
- */
- IPAllocationPolicy.prototype.clusterIpv4Cidr = "";
-
- /**
- * IPAllocationPolicy nodeIpv4Cidr.
- * @member {string} nodeIpv4Cidr
- * @memberof google.container.v1.IPAllocationPolicy
- * @instance
- */
- IPAllocationPolicy.prototype.nodeIpv4Cidr = "";
-
- /**
- * IPAllocationPolicy servicesIpv4Cidr.
- * @member {string} servicesIpv4Cidr
- * @memberof google.container.v1.IPAllocationPolicy
- * @instance
- */
- IPAllocationPolicy.prototype.servicesIpv4Cidr = "";
-
- /**
- * IPAllocationPolicy clusterSecondaryRangeName.
- * @member {string} clusterSecondaryRangeName
- * @memberof google.container.v1.IPAllocationPolicy
- * @instance
- */
- IPAllocationPolicy.prototype.clusterSecondaryRangeName = "";
-
- /**
- * IPAllocationPolicy servicesSecondaryRangeName.
- * @member {string} servicesSecondaryRangeName
- * @memberof google.container.v1.IPAllocationPolicy
- * @instance
- */
- IPAllocationPolicy.prototype.servicesSecondaryRangeName = "";
-
- /**
- * IPAllocationPolicy clusterIpv4CidrBlock.
- * @member {string} clusterIpv4CidrBlock
- * @memberof google.container.v1.IPAllocationPolicy
- * @instance
- */
- IPAllocationPolicy.prototype.clusterIpv4CidrBlock = "";
-
- /**
- * IPAllocationPolicy nodeIpv4CidrBlock.
- * @member {string} nodeIpv4CidrBlock
- * @memberof google.container.v1.IPAllocationPolicy
- * @instance
- */
- IPAllocationPolicy.prototype.nodeIpv4CidrBlock = "";
-
- /**
- * IPAllocationPolicy servicesIpv4CidrBlock.
- * @member {string} servicesIpv4CidrBlock
- * @memberof google.container.v1.IPAllocationPolicy
- * @instance
- */
- IPAllocationPolicy.prototype.servicesIpv4CidrBlock = "";
-
- /**
- * IPAllocationPolicy tpuIpv4CidrBlock.
- * @member {string} tpuIpv4CidrBlock
- * @memberof google.container.v1.IPAllocationPolicy
+ * ConfigConnectorConfig enabled.
+ * @member {boolean} enabled
+ * @memberof google.container.v1.ConfigConnectorConfig
* @instance
*/
- IPAllocationPolicy.prototype.tpuIpv4CidrBlock = "";
+ ConfigConnectorConfig.prototype.enabled = false;
/**
- * Creates a new IPAllocationPolicy instance using the specified properties.
+ * Creates a new ConfigConnectorConfig instance using the specified properties.
* @function create
- * @memberof google.container.v1.IPAllocationPolicy
+ * @memberof google.container.v1.ConfigConnectorConfig
* @static
- * @param {google.container.v1.IIPAllocationPolicy=} [properties] Properties to set
- * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy instance
+ * @param {google.container.v1.IConfigConnectorConfig=} [properties] Properties to set
+ * @returns {google.container.v1.ConfigConnectorConfig} ConfigConnectorConfig instance
*/
- IPAllocationPolicy.create = function create(properties) {
- return new IPAllocationPolicy(properties);
+ ConfigConnectorConfig.create = function create(properties) {
+ return new ConfigConnectorConfig(properties);
};
/**
- * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.container.v1.IPAllocationPolicy.verify|verify} messages.
+ * Encodes the specified ConfigConnectorConfig message. Does not implicitly {@link google.container.v1.ConfigConnectorConfig.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.IPAllocationPolicy
+ * @memberof google.container.v1.ConfigConnectorConfig
* @static
- * @param {google.container.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode
+ * @param {google.container.v1.IConfigConnectorConfig} message ConfigConnectorConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- IPAllocationPolicy.encode = function encode(message, writer) {
+ ConfigConnectorConfig.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.useIpAliases != null && Object.hasOwnProperty.call(message, "useIpAliases"))
- writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases);
- if (message.createSubnetwork != null && Object.hasOwnProperty.call(message, "createSubnetwork"))
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.createSubnetwork);
- if (message.subnetworkName != null && Object.hasOwnProperty.call(message, "subnetworkName"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.subnetworkName);
- if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4Cidr);
- if (message.nodeIpv4Cidr != null && Object.hasOwnProperty.call(message, "nodeIpv4Cidr"))
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeIpv4Cidr);
- if (message.servicesIpv4Cidr != null && Object.hasOwnProperty.call(message, "servicesIpv4Cidr"))
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.servicesIpv4Cidr);
- if (message.clusterSecondaryRangeName != null && Object.hasOwnProperty.call(message, "clusterSecondaryRangeName"))
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.clusterSecondaryRangeName);
- if (message.servicesSecondaryRangeName != null && Object.hasOwnProperty.call(message, "servicesSecondaryRangeName"))
- writer.uint32(/* id 8, wireType 2 =*/66).string(message.servicesSecondaryRangeName);
- if (message.clusterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "clusterIpv4CidrBlock"))
- writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4CidrBlock);
- if (message.nodeIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrBlock"))
- writer.uint32(/* id 10, wireType 2 =*/82).string(message.nodeIpv4CidrBlock);
- if (message.servicesIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "servicesIpv4CidrBlock"))
- writer.uint32(/* id 11, wireType 2 =*/90).string(message.servicesIpv4CidrBlock);
- if (message.tpuIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "tpuIpv4CidrBlock"))
- writer.uint32(/* id 13, wireType 2 =*/106).string(message.tpuIpv4CidrBlock);
+ if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
return writer;
};
/**
- * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.container.v1.IPAllocationPolicy.verify|verify} messages.
+ * Encodes the specified ConfigConnectorConfig message, length delimited. Does not implicitly {@link google.container.v1.ConfigConnectorConfig.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.IPAllocationPolicy
+ * @memberof google.container.v1.ConfigConnectorConfig
* @static
- * @param {google.container.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode
+ * @param {google.container.v1.IConfigConnectorConfig} message ConfigConnectorConfig message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- IPAllocationPolicy.encodeDelimited = function encodeDelimited(message, writer) {
+ ConfigConnectorConfig.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a IPAllocationPolicy message from the specified reader or buffer.
+ * Decodes a ConfigConnectorConfig message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.IPAllocationPolicy
+ * @memberof google.container.v1.ConfigConnectorConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy
+ * @returns {google.container.v1.ConfigConnectorConfig} ConfigConnectorConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- IPAllocationPolicy.decode = function decode(reader, length) {
+ ConfigConnectorConfig.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.IPAllocationPolicy();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ConfigConnectorConfig();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.useIpAliases = reader.bool();
- break;
- case 2:
- message.createSubnetwork = reader.bool();
- break;
- case 3:
- message.subnetworkName = reader.string();
- break;
- case 4:
- message.clusterIpv4Cidr = reader.string();
- break;
- case 5:
- message.nodeIpv4Cidr = reader.string();
- break;
- case 6:
- message.servicesIpv4Cidr = reader.string();
- break;
- case 7:
- message.clusterSecondaryRangeName = reader.string();
- break;
- case 8:
- message.servicesSecondaryRangeName = reader.string();
- break;
- case 9:
- message.clusterIpv4CidrBlock = reader.string();
- break;
- case 10:
- message.nodeIpv4CidrBlock = reader.string();
- break;
- case 11:
- message.servicesIpv4CidrBlock = reader.string();
- break;
- case 13:
- message.tpuIpv4CidrBlock = reader.string();
+ message.enabled = reader.bool();
break;
default:
reader.skipType(tag & 7);
@@ -5768,248 +5758,109 @@
};
/**
- * Decodes a IPAllocationPolicy message from the specified reader or buffer, length delimited.
+ * Decodes a ConfigConnectorConfig message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.IPAllocationPolicy
+ * @memberof google.container.v1.ConfigConnectorConfig
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy
+ * @returns {google.container.v1.ConfigConnectorConfig} ConfigConnectorConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- IPAllocationPolicy.decodeDelimited = function decodeDelimited(reader) {
+ ConfigConnectorConfig.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a IPAllocationPolicy message.
+ * Verifies a ConfigConnectorConfig message.
* @function verify
- * @memberof google.container.v1.IPAllocationPolicy
+ * @memberof google.container.v1.ConfigConnectorConfig
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- IPAllocationPolicy.verify = function verify(message) {
+ ConfigConnectorConfig.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases"))
- if (typeof message.useIpAliases !== "boolean")
- return "useIpAliases: boolean expected";
- if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork"))
- if (typeof message.createSubnetwork !== "boolean")
- return "createSubnetwork: boolean expected";
- if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName"))
- if (!$util.isString(message.subnetworkName))
- return "subnetworkName: string expected";
- if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr"))
- if (!$util.isString(message.clusterIpv4Cidr))
- return "clusterIpv4Cidr: string expected";
- if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr"))
- if (!$util.isString(message.nodeIpv4Cidr))
- return "nodeIpv4Cidr: string expected";
- if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr"))
- if (!$util.isString(message.servicesIpv4Cidr))
- return "servicesIpv4Cidr: string expected";
- if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName"))
- if (!$util.isString(message.clusterSecondaryRangeName))
- return "clusterSecondaryRangeName: string expected";
- if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName"))
- if (!$util.isString(message.servicesSecondaryRangeName))
- return "servicesSecondaryRangeName: string expected";
- if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock"))
- if (!$util.isString(message.clusterIpv4CidrBlock))
- return "clusterIpv4CidrBlock: string expected";
- if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock"))
- if (!$util.isString(message.nodeIpv4CidrBlock))
- return "nodeIpv4CidrBlock: string expected";
- if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock"))
- if (!$util.isString(message.servicesIpv4CidrBlock))
- return "servicesIpv4CidrBlock: string expected";
- if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock"))
- if (!$util.isString(message.tpuIpv4CidrBlock))
- return "tpuIpv4CidrBlock: string expected";
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ if (typeof message.enabled !== "boolean")
+ return "enabled: boolean expected";
return null;
};
/**
- * Creates a IPAllocationPolicy message from a plain object. Also converts values to their respective internal types.
+ * Creates a ConfigConnectorConfig message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.IPAllocationPolicy
+ * @memberof google.container.v1.ConfigConnectorConfig
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy
+ * @returns {google.container.v1.ConfigConnectorConfig} ConfigConnectorConfig
*/
- IPAllocationPolicy.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.IPAllocationPolicy)
+ ConfigConnectorConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.ConfigConnectorConfig)
return object;
- var message = new $root.google.container.v1.IPAllocationPolicy();
- if (object.useIpAliases != null)
- message.useIpAliases = Boolean(object.useIpAliases);
- if (object.createSubnetwork != null)
- message.createSubnetwork = Boolean(object.createSubnetwork);
- if (object.subnetworkName != null)
- message.subnetworkName = String(object.subnetworkName);
- if (object.clusterIpv4Cidr != null)
- message.clusterIpv4Cidr = String(object.clusterIpv4Cidr);
- if (object.nodeIpv4Cidr != null)
- message.nodeIpv4Cidr = String(object.nodeIpv4Cidr);
- if (object.servicesIpv4Cidr != null)
- message.servicesIpv4Cidr = String(object.servicesIpv4Cidr);
- if (object.clusterSecondaryRangeName != null)
- message.clusterSecondaryRangeName = String(object.clusterSecondaryRangeName);
- if (object.servicesSecondaryRangeName != null)
- message.servicesSecondaryRangeName = String(object.servicesSecondaryRangeName);
- if (object.clusterIpv4CidrBlock != null)
- message.clusterIpv4CidrBlock = String(object.clusterIpv4CidrBlock);
- if (object.nodeIpv4CidrBlock != null)
- message.nodeIpv4CidrBlock = String(object.nodeIpv4CidrBlock);
- if (object.servicesIpv4CidrBlock != null)
- message.servicesIpv4CidrBlock = String(object.servicesIpv4CidrBlock);
- if (object.tpuIpv4CidrBlock != null)
- message.tpuIpv4CidrBlock = String(object.tpuIpv4CidrBlock);
+ var message = new $root.google.container.v1.ConfigConnectorConfig();
+ if (object.enabled != null)
+ message.enabled = Boolean(object.enabled);
return message;
};
/**
- * Creates a plain object from a IPAllocationPolicy message. Also converts values to other types if specified.
+ * Creates a plain object from a ConfigConnectorConfig message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.IPAllocationPolicy
+ * @memberof google.container.v1.ConfigConnectorConfig
* @static
- * @param {google.container.v1.IPAllocationPolicy} message IPAllocationPolicy
+ * @param {google.container.v1.ConfigConnectorConfig} message ConfigConnectorConfig
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- IPAllocationPolicy.toObject = function toObject(message, options) {
+ ConfigConnectorConfig.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.defaults) {
- object.useIpAliases = false;
- object.createSubnetwork = false;
- object.subnetworkName = "";
- object.clusterIpv4Cidr = "";
- object.nodeIpv4Cidr = "";
- object.servicesIpv4Cidr = "";
- object.clusterSecondaryRangeName = "";
- object.servicesSecondaryRangeName = "";
- object.clusterIpv4CidrBlock = "";
- object.nodeIpv4CidrBlock = "";
- object.servicesIpv4CidrBlock = "";
- object.tpuIpv4CidrBlock = "";
- }
- if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases"))
- object.useIpAliases = message.useIpAliases;
- if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork"))
- object.createSubnetwork = message.createSubnetwork;
- if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName"))
- object.subnetworkName = message.subnetworkName;
- if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr"))
- object.clusterIpv4Cidr = message.clusterIpv4Cidr;
- if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr"))
- object.nodeIpv4Cidr = message.nodeIpv4Cidr;
- if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr"))
- object.servicesIpv4Cidr = message.servicesIpv4Cidr;
- if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName"))
- object.clusterSecondaryRangeName = message.clusterSecondaryRangeName;
- if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName"))
- object.servicesSecondaryRangeName = message.servicesSecondaryRangeName;
- if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock"))
- object.clusterIpv4CidrBlock = message.clusterIpv4CidrBlock;
- if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock"))
- object.nodeIpv4CidrBlock = message.nodeIpv4CidrBlock;
- if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock"))
- object.servicesIpv4CidrBlock = message.servicesIpv4CidrBlock;
- if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock"))
- object.tpuIpv4CidrBlock = message.tpuIpv4CidrBlock;
+ if (options.defaults)
+ object.enabled = false;
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ object.enabled = message.enabled;
return object;
};
/**
- * Converts this IPAllocationPolicy to JSON.
+ * Converts this ConfigConnectorConfig to JSON.
* @function toJSON
- * @memberof google.container.v1.IPAllocationPolicy
+ * @memberof google.container.v1.ConfigConnectorConfig
* @instance
* @returns {Object.} JSON object
*/
- IPAllocationPolicy.prototype.toJSON = function toJSON() {
+ ConfigConnectorConfig.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return IPAllocationPolicy;
+ return ConfigConnectorConfig;
})();
- v1.Cluster = (function() {
+ v1.MasterAuthorizedNetworksConfig = (function() {
/**
- * Properties of a Cluster.
+ * Properties of a MasterAuthorizedNetworksConfig.
* @memberof google.container.v1
- * @interface ICluster
- * @property {string|null} [name] Cluster name
- * @property {string|null} [description] Cluster description
- * @property {number|null} [initialNodeCount] Cluster initialNodeCount
- * @property {google.container.v1.INodeConfig|null} [nodeConfig] Cluster nodeConfig
- * @property {google.container.v1.IMasterAuth|null} [masterAuth] Cluster masterAuth
- * @property {string|null} [loggingService] Cluster loggingService
- * @property {string|null} [monitoringService] Cluster monitoringService
- * @property {string|null} [network] Cluster network
- * @property {string|null} [clusterIpv4Cidr] Cluster clusterIpv4Cidr
- * @property {google.container.v1.IAddonsConfig|null} [addonsConfig] Cluster addonsConfig
- * @property {string|null} [subnetwork] Cluster subnetwork
- * @property {Array.|null} [nodePools] Cluster nodePools
- * @property {Array.|null} [locations] Cluster locations
- * @property {boolean|null} [enableKubernetesAlpha] Cluster enableKubernetesAlpha
- * @property {Object.|null} [resourceLabels] Cluster resourceLabels
- * @property {string|null} [labelFingerprint] Cluster labelFingerprint
- * @property {google.container.v1.ILegacyAbac|null} [legacyAbac] Cluster legacyAbac
- * @property {google.container.v1.INetworkPolicy|null} [networkPolicy] Cluster networkPolicy
- * @property {google.container.v1.IIPAllocationPolicy|null} [ipAllocationPolicy] Cluster ipAllocationPolicy
- * @property {google.container.v1.IMasterAuthorizedNetworksConfig|null} [masterAuthorizedNetworksConfig] Cluster masterAuthorizedNetworksConfig
- * @property {google.container.v1.IMaintenancePolicy|null} [maintenancePolicy] Cluster maintenancePolicy
- * @property {google.container.v1.IBinaryAuthorization|null} [binaryAuthorization] Cluster binaryAuthorization
- * @property {google.container.v1.IClusterAutoscaling|null} [autoscaling] Cluster autoscaling
- * @property {google.container.v1.INetworkConfig|null} [networkConfig] Cluster networkConfig
- * @property {google.container.v1.IMaxPodsConstraint|null} [defaultMaxPodsConstraint] Cluster defaultMaxPodsConstraint
- * @property {google.container.v1.IResourceUsageExportConfig|null} [resourceUsageExportConfig] Cluster resourceUsageExportConfig
- * @property {google.container.v1.IAuthenticatorGroupsConfig|null} [authenticatorGroupsConfig] Cluster authenticatorGroupsConfig
- * @property {google.container.v1.IPrivateClusterConfig|null} [privateClusterConfig] Cluster privateClusterConfig
- * @property {google.container.v1.IDatabaseEncryption|null} [databaseEncryption] Cluster databaseEncryption
- * @property {google.container.v1.IVerticalPodAutoscaling|null} [verticalPodAutoscaling] Cluster verticalPodAutoscaling
- * @property {string|null} [selfLink] Cluster selfLink
- * @property {string|null} [zone] Cluster zone
- * @property {string|null} [endpoint] Cluster endpoint
- * @property {string|null} [initialClusterVersion] Cluster initialClusterVersion
- * @property {string|null} [currentMasterVersion] Cluster currentMasterVersion
- * @property {string|null} [currentNodeVersion] Cluster currentNodeVersion
- * @property {string|null} [createTime] Cluster createTime
- * @property {google.container.v1.Cluster.Status|null} [status] Cluster status
- * @property {string|null} [statusMessage] Cluster statusMessage
- * @property {number|null} [nodeIpv4CidrSize] Cluster nodeIpv4CidrSize
- * @property {string|null} [servicesIpv4Cidr] Cluster servicesIpv4Cidr
- * @property {Array.|null} [instanceGroupUrls] Cluster instanceGroupUrls
- * @property {number|null} [currentNodeCount] Cluster currentNodeCount
- * @property {string|null} [expireTime] Cluster expireTime
- * @property {string|null} [location] Cluster location
- * @property {boolean|null} [enableTpu] Cluster enableTpu
- * @property {string|null} [tpuIpv4CidrBlock] Cluster tpuIpv4CidrBlock
- * @property {Array.|null} [conditions] Cluster conditions
+ * @interface IMasterAuthorizedNetworksConfig
+ * @property {boolean|null} [enabled] MasterAuthorizedNetworksConfig enabled
+ * @property {Array.|null} [cidrBlocks] MasterAuthorizedNetworksConfig cidrBlocks
*/
/**
- * Constructs a new Cluster.
+ * Constructs a new MasterAuthorizedNetworksConfig.
* @memberof google.container.v1
- * @classdesc Represents a Cluster.
- * @implements ICluster
+ * @classdesc Represents a MasterAuthorizedNetworksConfig.
+ * @implements IMasterAuthorizedNetworksConfig
* @constructor
- * @param {google.container.v1.ICluster=} [properties] Properties to set
+ * @param {google.container.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set
*/
- function Cluster(properties) {
- this.nodePools = [];
- this.locations = [];
- this.resourceLabels = {};
- this.instanceGroupUrls = [];
- this.conditions = [];
+ function MasterAuthorizedNetworksConfig(properties) {
+ this.cidrBlocks = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -6017,718 +5868,938 @@
}
/**
- * Cluster name.
- * @member {string} name
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.name = "";
-
- /**
- * Cluster description.
- * @member {string} description
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.description = "";
-
- /**
- * Cluster initialNodeCount.
- * @member {number} initialNodeCount
- * @memberof google.container.v1.Cluster
+ * MasterAuthorizedNetworksConfig enabled.
+ * @member {boolean} enabled
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig
* @instance
*/
- Cluster.prototype.initialNodeCount = 0;
+ MasterAuthorizedNetworksConfig.prototype.enabled = false;
/**
- * Cluster nodeConfig.
- * @member {google.container.v1.INodeConfig|null|undefined} nodeConfig
- * @memberof google.container.v1.Cluster
+ * MasterAuthorizedNetworksConfig cidrBlocks.
+ * @member {Array.} cidrBlocks
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig
* @instance
*/
- Cluster.prototype.nodeConfig = null;
+ MasterAuthorizedNetworksConfig.prototype.cidrBlocks = $util.emptyArray;
/**
- * Cluster masterAuth.
- * @member {google.container.v1.IMasterAuth|null|undefined} masterAuth
- * @memberof google.container.v1.Cluster
- * @instance
+ * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @static
+ * @param {google.container.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set
+ * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig instance
*/
- Cluster.prototype.masterAuth = null;
+ MasterAuthorizedNetworksConfig.create = function create(properties) {
+ return new MasterAuthorizedNetworksConfig(properties);
+ };
/**
- * Cluster loggingService.
- * @member {string} loggingService
- * @memberof google.container.v1.Cluster
- * @instance
+ * Encodes the specified MasterAuthorizedNetworksConfig message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @static
+ * @param {google.container.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
*/
- Cluster.prototype.loggingService = "";
+ MasterAuthorizedNetworksConfig.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
+ if (message.cidrBlocks != null && message.cidrBlocks.length)
+ for (var i = 0; i < message.cidrBlocks.length; ++i)
+ $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.encode(message.cidrBlocks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
/**
- * Cluster monitoringService.
- * @member {string} monitoringService
- * @memberof google.container.v1.Cluster
- * @instance
+ * Encodes the specified MasterAuthorizedNetworksConfig message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @static
+ * @param {google.container.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
*/
- Cluster.prototype.monitoringService = "";
+ MasterAuthorizedNetworksConfig.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
/**
- * Cluster network.
- * @member {string} network
- * @memberof google.container.v1.Cluster
- * @instance
+ * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- Cluster.prototype.network = "";
+ MasterAuthorizedNetworksConfig.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.MasterAuthorizedNetworksConfig();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.enabled = reader.bool();
+ break;
+ case 2:
+ if (!(message.cidrBlocks && message.cidrBlocks.length))
+ message.cidrBlocks = [];
+ message.cidrBlocks.push($root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
/**
- * Cluster clusterIpv4Cidr.
- * @member {string} clusterIpv4Cidr
- * @memberof google.container.v1.Cluster
- * @instance
+ * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- Cluster.prototype.clusterIpv4Cidr = "";
+ MasterAuthorizedNetworksConfig.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
/**
- * Cluster addonsConfig.
- * @member {google.container.v1.IAddonsConfig|null|undefined} addonsConfig
- * @memberof google.container.v1.Cluster
- * @instance
+ * Verifies a MasterAuthorizedNetworksConfig message.
+ * @function verify
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- Cluster.prototype.addonsConfig = null;
+ MasterAuthorizedNetworksConfig.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ if (typeof message.enabled !== "boolean")
+ return "enabled: boolean expected";
+ if (message.cidrBlocks != null && message.hasOwnProperty("cidrBlocks")) {
+ if (!Array.isArray(message.cidrBlocks))
+ return "cidrBlocks: array expected";
+ for (var i = 0; i < message.cidrBlocks.length; ++i) {
+ var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify(message.cidrBlocks[i]);
+ if (error)
+ return "cidrBlocks." + error;
+ }
+ }
+ return null;
+ };
/**
- * Cluster subnetwork.
- * @member {string} subnetwork
- * @memberof google.container.v1.Cluster
- * @instance
+ * Creates a MasterAuthorizedNetworksConfig message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig
*/
- Cluster.prototype.subnetwork = "";
+ MasterAuthorizedNetworksConfig.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.MasterAuthorizedNetworksConfig)
+ return object;
+ var message = new $root.google.container.v1.MasterAuthorizedNetworksConfig();
+ if (object.enabled != null)
+ message.enabled = Boolean(object.enabled);
+ if (object.cidrBlocks) {
+ if (!Array.isArray(object.cidrBlocks))
+ throw TypeError(".google.container.v1.MasterAuthorizedNetworksConfig.cidrBlocks: array expected");
+ message.cidrBlocks = [];
+ for (var i = 0; i < object.cidrBlocks.length; ++i) {
+ if (typeof object.cidrBlocks[i] !== "object")
+ throw TypeError(".google.container.v1.MasterAuthorizedNetworksConfig.cidrBlocks: object expected");
+ message.cidrBlocks[i] = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.fromObject(object.cidrBlocks[i]);
+ }
+ }
+ return message;
+ };
/**
- * Cluster nodePools.
- * @member {Array.} nodePools
- * @memberof google.container.v1.Cluster
- * @instance
+ * Creates a plain object from a MasterAuthorizedNetworksConfig message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @static
+ * @param {google.container.v1.MasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
*/
- Cluster.prototype.nodePools = $util.emptyArray;
+ MasterAuthorizedNetworksConfig.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.cidrBlocks = [];
+ if (options.defaults)
+ object.enabled = false;
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ object.enabled = message.enabled;
+ if (message.cidrBlocks && message.cidrBlocks.length) {
+ object.cidrBlocks = [];
+ for (var j = 0; j < message.cidrBlocks.length; ++j)
+ object.cidrBlocks[j] = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.toObject(message.cidrBlocks[j], options);
+ }
+ return object;
+ };
/**
- * Cluster locations.
- * @member {Array.} locations
- * @memberof google.container.v1.Cluster
+ * Converts this MasterAuthorizedNetworksConfig to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig
* @instance
+ * @returns {Object.} JSON object
*/
- Cluster.prototype.locations = $util.emptyArray;
+ MasterAuthorizedNetworksConfig.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- /**
- * Cluster enableKubernetesAlpha.
- * @member {boolean} enableKubernetesAlpha
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.enableKubernetesAlpha = false;
+ MasterAuthorizedNetworksConfig.CidrBlock = (function() {
- /**
- * Cluster resourceLabels.
- * @member {Object.} resourceLabels
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.resourceLabels = $util.emptyObject;
+ /**
+ * Properties of a CidrBlock.
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @interface ICidrBlock
+ * @property {string|null} [displayName] CidrBlock displayName
+ * @property {string|null} [cidrBlock] CidrBlock cidrBlock
+ */
- /**
- * Cluster labelFingerprint.
- * @member {string} labelFingerprint
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.labelFingerprint = "";
+ /**
+ * Constructs a new CidrBlock.
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig
+ * @classdesc Represents a CidrBlock.
+ * @implements ICidrBlock
+ * @constructor
+ * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock=} [properties] Properties to set
+ */
+ function CidrBlock(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]];
+ }
- /**
- * Cluster legacyAbac.
- * @member {google.container.v1.ILegacyAbac|null|undefined} legacyAbac
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.legacyAbac = null;
+ /**
+ * CidrBlock displayName.
+ * @member {string} displayName
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
+ * @instance
+ */
+ CidrBlock.prototype.displayName = "";
- /**
- * Cluster networkPolicy.
- * @member {google.container.v1.INetworkPolicy|null|undefined} networkPolicy
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.networkPolicy = null;
+ /**
+ * CidrBlock cidrBlock.
+ * @member {string} cidrBlock
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
+ * @instance
+ */
+ CidrBlock.prototype.cidrBlock = "";
- /**
- * Cluster ipAllocationPolicy.
- * @member {google.container.v1.IIPAllocationPolicy|null|undefined} ipAllocationPolicy
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.ipAllocationPolicy = null;
+ /**
+ * Creates a new CidrBlock instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
+ * @static
+ * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock=} [properties] Properties to set
+ * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock instance
+ */
+ CidrBlock.create = function create(properties) {
+ return new CidrBlock(properties);
+ };
- /**
- * Cluster masterAuthorizedNetworksConfig.
- * @member {google.container.v1.IMasterAuthorizedNetworksConfig|null|undefined} masterAuthorizedNetworksConfig
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.masterAuthorizedNetworksConfig = null;
+ /**
+ * Encodes the specified CidrBlock message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
+ * @static
+ * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock} message CidrBlock message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CidrBlock.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName);
+ if (message.cidrBlock != null && Object.hasOwnProperty.call(message, "cidrBlock"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.cidrBlock);
+ return writer;
+ };
- /**
- * Cluster maintenancePolicy.
- * @member {google.container.v1.IMaintenancePolicy|null|undefined} maintenancePolicy
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.maintenancePolicy = null;
+ /**
+ * Encodes the specified CidrBlock message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
+ * @static
+ * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock} message CidrBlock message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CidrBlock.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
- /**
- * Cluster binaryAuthorization.
- * @member {google.container.v1.IBinaryAuthorization|null|undefined} binaryAuthorization
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.binaryAuthorization = null;
+ /**
+ * Decodes a CidrBlock message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CidrBlock.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.MasterAuthorizedNetworksConfig.CidrBlock();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.displayName = reader.string();
+ break;
+ case 2:
+ message.cidrBlock = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
- /**
- * Cluster autoscaling.
- * @member {google.container.v1.IClusterAutoscaling|null|undefined} autoscaling
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.autoscaling = null;
+ /**
+ * Decodes a CidrBlock message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CidrBlock.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
- /**
- * Cluster networkConfig.
- * @member {google.container.v1.INetworkConfig|null|undefined} networkConfig
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.networkConfig = null;
+ /**
+ * Verifies a CidrBlock message.
+ * @function verify
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CidrBlock.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock"))
+ if (!$util.isString(message.cidrBlock))
+ return "cidrBlock: string expected";
+ return null;
+ };
- /**
- * Cluster defaultMaxPodsConstraint.
- * @member {google.container.v1.IMaxPodsConstraint|null|undefined} defaultMaxPodsConstraint
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.defaultMaxPodsConstraint = null;
+ /**
+ * Creates a CidrBlock message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock
+ */
+ CidrBlock.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock)
+ return object;
+ var message = new $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock();
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.cidrBlock != null)
+ message.cidrBlock = String(object.cidrBlock);
+ return message;
+ };
- /**
- * Cluster resourceUsageExportConfig.
- * @member {google.container.v1.IResourceUsageExportConfig|null|undefined} resourceUsageExportConfig
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.resourceUsageExportConfig = null;
+ /**
+ * Creates a plain object from a CidrBlock message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
+ * @static
+ * @param {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} message CidrBlock
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CidrBlock.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.displayName = "";
+ object.cidrBlock = "";
+ }
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
+ object.displayName = message.displayName;
+ if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock"))
+ object.cidrBlock = message.cidrBlock;
+ return object;
+ };
- /**
- * Cluster authenticatorGroupsConfig.
- * @member {google.container.v1.IAuthenticatorGroupsConfig|null|undefined} authenticatorGroupsConfig
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.authenticatorGroupsConfig = null;
+ /**
+ * Converts this CidrBlock to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CidrBlock.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- /**
- * Cluster privateClusterConfig.
- * @member {google.container.v1.IPrivateClusterConfig|null|undefined} privateClusterConfig
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.privateClusterConfig = null;
+ return CidrBlock;
+ })();
+
+ return MasterAuthorizedNetworksConfig;
+ })();
+
+ v1.LegacyAbac = (function() {
/**
- * Cluster databaseEncryption.
- * @member {google.container.v1.IDatabaseEncryption|null|undefined} databaseEncryption
- * @memberof google.container.v1.Cluster
- * @instance
+ * Properties of a LegacyAbac.
+ * @memberof google.container.v1
+ * @interface ILegacyAbac
+ * @property {boolean|null} [enabled] LegacyAbac enabled
*/
- Cluster.prototype.databaseEncryption = null;
/**
- * Cluster verticalPodAutoscaling.
- * @member {google.container.v1.IVerticalPodAutoscaling|null|undefined} verticalPodAutoscaling
- * @memberof google.container.v1.Cluster
- * @instance
+ * Constructs a new LegacyAbac.
+ * @memberof google.container.v1
+ * @classdesc Represents a LegacyAbac.
+ * @implements ILegacyAbac
+ * @constructor
+ * @param {google.container.v1.ILegacyAbac=} [properties] Properties to set
*/
- Cluster.prototype.verticalPodAutoscaling = null;
+ function LegacyAbac(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]];
+ }
/**
- * Cluster selfLink.
- * @member {string} selfLink
- * @memberof google.container.v1.Cluster
+ * LegacyAbac enabled.
+ * @member {boolean} enabled
+ * @memberof google.container.v1.LegacyAbac
* @instance
*/
- Cluster.prototype.selfLink = "";
+ LegacyAbac.prototype.enabled = false;
/**
- * Cluster zone.
- * @member {string} zone
- * @memberof google.container.v1.Cluster
- * @instance
+ * Creates a new LegacyAbac instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.LegacyAbac
+ * @static
+ * @param {google.container.v1.ILegacyAbac=} [properties] Properties to set
+ * @returns {google.container.v1.LegacyAbac} LegacyAbac instance
*/
- Cluster.prototype.zone = "";
+ LegacyAbac.create = function create(properties) {
+ return new LegacyAbac(properties);
+ };
/**
- * Cluster endpoint.
- * @member {string} endpoint
- * @memberof google.container.v1.Cluster
- * @instance
+ * Encodes the specified LegacyAbac message. Does not implicitly {@link google.container.v1.LegacyAbac.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.LegacyAbac
+ * @static
+ * @param {google.container.v1.ILegacyAbac} message LegacyAbac message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
*/
- Cluster.prototype.endpoint = "";
+ LegacyAbac.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
+ return writer;
+ };
/**
- * Cluster initialClusterVersion.
- * @member {string} initialClusterVersion
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.initialClusterVersion = "";
-
- /**
- * Cluster currentMasterVersion.
- * @member {string} currentMasterVersion
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.currentMasterVersion = "";
-
- /**
- * Cluster currentNodeVersion.
- * @member {string} currentNodeVersion
- * @memberof google.container.v1.Cluster
- * @instance
+ * Encodes the specified LegacyAbac message, length delimited. Does not implicitly {@link google.container.v1.LegacyAbac.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.LegacyAbac
+ * @static
+ * @param {google.container.v1.ILegacyAbac} message LegacyAbac message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
*/
- Cluster.prototype.currentNodeVersion = "";
+ LegacyAbac.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
/**
- * Cluster createTime.
- * @member {string} createTime
- * @memberof google.container.v1.Cluster
- * @instance
+ * Decodes a LegacyAbac message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.LegacyAbac
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.LegacyAbac} LegacyAbac
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- Cluster.prototype.createTime = "";
+ LegacyAbac.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.LegacyAbac();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.enabled = reader.bool();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
/**
- * Cluster status.
- * @member {google.container.v1.Cluster.Status} status
- * @memberof google.container.v1.Cluster
- * @instance
+ * Decodes a LegacyAbac message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.LegacyAbac
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.LegacyAbac} LegacyAbac
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- Cluster.prototype.status = 0;
+ LegacyAbac.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
/**
- * Cluster statusMessage.
- * @member {string} statusMessage
- * @memberof google.container.v1.Cluster
- * @instance
+ * Verifies a LegacyAbac message.
+ * @function verify
+ * @memberof google.container.v1.LegacyAbac
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- Cluster.prototype.statusMessage = "";
+ LegacyAbac.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ if (typeof message.enabled !== "boolean")
+ return "enabled: boolean expected";
+ return null;
+ };
/**
- * Cluster nodeIpv4CidrSize.
- * @member {number} nodeIpv4CidrSize
- * @memberof google.container.v1.Cluster
- * @instance
+ * Creates a LegacyAbac message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.LegacyAbac
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.LegacyAbac} LegacyAbac
*/
- Cluster.prototype.nodeIpv4CidrSize = 0;
+ LegacyAbac.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.LegacyAbac)
+ return object;
+ var message = new $root.google.container.v1.LegacyAbac();
+ if (object.enabled != null)
+ message.enabled = Boolean(object.enabled);
+ return message;
+ };
/**
- * Cluster servicesIpv4Cidr.
- * @member {string} servicesIpv4Cidr
- * @memberof google.container.v1.Cluster
- * @instance
+ * Creates a plain object from a LegacyAbac message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.LegacyAbac
+ * @static
+ * @param {google.container.v1.LegacyAbac} message LegacyAbac
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
*/
- Cluster.prototype.servicesIpv4Cidr = "";
+ LegacyAbac.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.enabled = false;
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ object.enabled = message.enabled;
+ return object;
+ };
/**
- * Cluster instanceGroupUrls.
- * @member {Array.} instanceGroupUrls
- * @memberof google.container.v1.Cluster
+ * Converts this LegacyAbac to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.LegacyAbac
* @instance
+ * @returns {Object.} JSON object
*/
- Cluster.prototype.instanceGroupUrls = $util.emptyArray;
+ LegacyAbac.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
- /**
- * Cluster currentNodeCount.
- * @member {number} currentNodeCount
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.currentNodeCount = 0;
+ return LegacyAbac;
+ })();
- /**
- * Cluster expireTime.
- * @member {string} expireTime
- * @memberof google.container.v1.Cluster
- * @instance
- */
- Cluster.prototype.expireTime = "";
+ v1.NetworkPolicy = (function() {
/**
- * Cluster location.
- * @member {string} location
- * @memberof google.container.v1.Cluster
- * @instance
+ * Properties of a NetworkPolicy.
+ * @memberof google.container.v1
+ * @interface INetworkPolicy
+ * @property {google.container.v1.NetworkPolicy.Provider|null} [provider] NetworkPolicy provider
+ * @property {boolean|null} [enabled] NetworkPolicy enabled
*/
- Cluster.prototype.location = "";
/**
- * Cluster enableTpu.
- * @member {boolean} enableTpu
- * @memberof google.container.v1.Cluster
- * @instance
+ * Constructs a new NetworkPolicy.
+ * @memberof google.container.v1
+ * @classdesc Represents a NetworkPolicy.
+ * @implements INetworkPolicy
+ * @constructor
+ * @param {google.container.v1.INetworkPolicy=} [properties] Properties to set
*/
- Cluster.prototype.enableTpu = false;
+ function NetworkPolicy(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]];
+ }
/**
- * Cluster tpuIpv4CidrBlock.
- * @member {string} tpuIpv4CidrBlock
- * @memberof google.container.v1.Cluster
+ * NetworkPolicy provider.
+ * @member {google.container.v1.NetworkPolicy.Provider} provider
+ * @memberof google.container.v1.NetworkPolicy
* @instance
*/
- Cluster.prototype.tpuIpv4CidrBlock = "";
+ NetworkPolicy.prototype.provider = 0;
/**
- * Cluster conditions.
- * @member {Array.} conditions
- * @memberof google.container.v1.Cluster
+ * NetworkPolicy enabled.
+ * @member {boolean} enabled
+ * @memberof google.container.v1.NetworkPolicy
* @instance
*/
- Cluster.prototype.conditions = $util.emptyArray;
+ NetworkPolicy.prototype.enabled = false;
/**
- * Creates a new Cluster instance using the specified properties.
+ * Creates a new NetworkPolicy instance using the specified properties.
* @function create
- * @memberof google.container.v1.Cluster
+ * @memberof google.container.v1.NetworkPolicy
* @static
- * @param {google.container.v1.ICluster=} [properties] Properties to set
- * @returns {google.container.v1.Cluster} Cluster instance
+ * @param {google.container.v1.INetworkPolicy=} [properties] Properties to set
+ * @returns {google.container.v1.NetworkPolicy} NetworkPolicy instance
*/
- Cluster.create = function create(properties) {
- return new Cluster(properties);
+ NetworkPolicy.create = function create(properties) {
+ return new NetworkPolicy(properties);
};
/**
- * Encodes the specified Cluster message. Does not implicitly {@link google.container.v1.Cluster.verify|verify} messages.
+ * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.container.v1.NetworkPolicy.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.Cluster
+ * @memberof google.container.v1.NetworkPolicy
* @static
- * @param {google.container.v1.ICluster} message Cluster message or plain object to encode
+ * @param {google.container.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- Cluster.encode = function encode(message, writer) {
+ NetworkPolicy.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
- if (message.description != null && Object.hasOwnProperty.call(message, "description"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
- if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount"))
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount);
- if (message.nodeConfig != null && Object.hasOwnProperty.call(message, "nodeConfig"))
- $root.google.container.v1.NodeConfig.encode(message.nodeConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
- if (message.masterAuth != null && Object.hasOwnProperty.call(message, "masterAuth"))
- $root.google.container.v1.MasterAuth.encode(message.masterAuth, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
- if (message.loggingService != null && Object.hasOwnProperty.call(message, "loggingService"))
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.loggingService);
- if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService"))
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.monitoringService);
- if (message.network != null && Object.hasOwnProperty.call(message, "network"))
- writer.uint32(/* id 8, wireType 2 =*/66).string(message.network);
- if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr"))
- writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4Cidr);
- if (message.addonsConfig != null && Object.hasOwnProperty.call(message, "addonsConfig"))
- $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
- if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork"))
- writer.uint32(/* id 11, wireType 2 =*/90).string(message.subnetwork);
- if (message.nodePools != null && message.nodePools.length)
- for (var i = 0; i < message.nodePools.length; ++i)
- $root.google.container.v1.NodePool.encode(message.nodePools[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
- if (message.locations != null && message.locations.length)
- for (var i = 0; i < message.locations.length; ++i)
- writer.uint32(/* id 13, wireType 2 =*/106).string(message.locations[i]);
- if (message.enableKubernetesAlpha != null && Object.hasOwnProperty.call(message, "enableKubernetesAlpha"))
- writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableKubernetesAlpha);
- if (message.resourceLabels != null && Object.hasOwnProperty.call(message, "resourceLabels"))
- for (var keys = Object.keys(message.resourceLabels), i = 0; i < keys.length; ++i)
- writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceLabels[keys[i]]).ldelim();
- if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint"))
- writer.uint32(/* id 16, wireType 2 =*/130).string(message.labelFingerprint);
- if (message.legacyAbac != null && Object.hasOwnProperty.call(message, "legacyAbac"))
- $root.google.container.v1.LegacyAbac.encode(message.legacyAbac, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
- if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy"))
- $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
- if (message.ipAllocationPolicy != null && Object.hasOwnProperty.call(message, "ipAllocationPolicy"))
- $root.google.container.v1.IPAllocationPolicy.encode(message.ipAllocationPolicy, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
- if (message.masterAuthorizedNetworksConfig != null && Object.hasOwnProperty.call(message, "masterAuthorizedNetworksConfig"))
- $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.masterAuthorizedNetworksConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
- if (message.maintenancePolicy != null && Object.hasOwnProperty.call(message, "maintenancePolicy"))
- $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
- if (message.binaryAuthorization != null && Object.hasOwnProperty.call(message, "binaryAuthorization"))
- $root.google.container.v1.BinaryAuthorization.encode(message.binaryAuthorization, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
- if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling"))
- $root.google.container.v1.ClusterAutoscaling.encode(message.autoscaling, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
- if (message.networkConfig != null && Object.hasOwnProperty.call(message, "networkConfig"))
- $root.google.container.v1.NetworkConfig.encode(message.networkConfig, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
- if (message.defaultMaxPodsConstraint != null && Object.hasOwnProperty.call(message, "defaultMaxPodsConstraint"))
- $root.google.container.v1.MaxPodsConstraint.encode(message.defaultMaxPodsConstraint, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim();
- if (message.resourceUsageExportConfig != null && Object.hasOwnProperty.call(message, "resourceUsageExportConfig"))
- $root.google.container.v1.ResourceUsageExportConfig.encode(message.resourceUsageExportConfig, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim();
- if (message.authenticatorGroupsConfig != null && Object.hasOwnProperty.call(message, "authenticatorGroupsConfig"))
- $root.google.container.v1.AuthenticatorGroupsConfig.encode(message.authenticatorGroupsConfig, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim();
- if (message.privateClusterConfig != null && Object.hasOwnProperty.call(message, "privateClusterConfig"))
- $root.google.container.v1.PrivateClusterConfig.encode(message.privateClusterConfig, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim();
- if (message.databaseEncryption != null && Object.hasOwnProperty.call(message, "databaseEncryption"))
- $root.google.container.v1.DatabaseEncryption.encode(message.databaseEncryption, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim();
- if (message.verticalPodAutoscaling != null && Object.hasOwnProperty.call(message, "verticalPodAutoscaling"))
- $root.google.container.v1.VerticalPodAutoscaling.encode(message.verticalPodAutoscaling, writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim();
- if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink"))
- writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink);
- if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
- writer.uint32(/* id 101, wireType 2 =*/810).string(message.zone);
- if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint"))
- writer.uint32(/* id 102, wireType 2 =*/818).string(message.endpoint);
- if (message.initialClusterVersion != null && Object.hasOwnProperty.call(message, "initialClusterVersion"))
- writer.uint32(/* id 103, wireType 2 =*/826).string(message.initialClusterVersion);
- if (message.currentMasterVersion != null && Object.hasOwnProperty.call(message, "currentMasterVersion"))
- writer.uint32(/* id 104, wireType 2 =*/834).string(message.currentMasterVersion);
- if (message.currentNodeVersion != null && Object.hasOwnProperty.call(message, "currentNodeVersion"))
- writer.uint32(/* id 105, wireType 2 =*/842).string(message.currentNodeVersion);
- if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
- writer.uint32(/* id 106, wireType 2 =*/850).string(message.createTime);
- if (message.status != null && Object.hasOwnProperty.call(message, "status"))
- writer.uint32(/* id 107, wireType 0 =*/856).int32(message.status);
- if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage"))
- writer.uint32(/* id 108, wireType 2 =*/866).string(message.statusMessage);
- if (message.nodeIpv4CidrSize != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrSize"))
- writer.uint32(/* id 109, wireType 0 =*/872).int32(message.nodeIpv4CidrSize);
- if (message.servicesIpv4Cidr != null && Object.hasOwnProperty.call(message, "servicesIpv4Cidr"))
- writer.uint32(/* id 110, wireType 2 =*/882).string(message.servicesIpv4Cidr);
- if (message.instanceGroupUrls != null && message.instanceGroupUrls.length)
- for (var i = 0; i < message.instanceGroupUrls.length; ++i)
- writer.uint32(/* id 111, wireType 2 =*/890).string(message.instanceGroupUrls[i]);
- if (message.currentNodeCount != null && Object.hasOwnProperty.call(message, "currentNodeCount"))
- writer.uint32(/* id 112, wireType 0 =*/896).int32(message.currentNodeCount);
- if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime"))
- writer.uint32(/* id 113, wireType 2 =*/906).string(message.expireTime);
- if (message.location != null && Object.hasOwnProperty.call(message, "location"))
- writer.uint32(/* id 114, wireType 2 =*/914).string(message.location);
- if (message.enableTpu != null && Object.hasOwnProperty.call(message, "enableTpu"))
- writer.uint32(/* id 115, wireType 0 =*/920).bool(message.enableTpu);
- if (message.tpuIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "tpuIpv4CidrBlock"))
- writer.uint32(/* id 116, wireType 2 =*/930).string(message.tpuIpv4CidrBlock);
- if (message.conditions != null && message.conditions.length)
- for (var i = 0; i < message.conditions.length; ++i)
- $root.google.container.v1.StatusCondition.encode(message.conditions[i], writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim();
+ if (message.provider != null && Object.hasOwnProperty.call(message, "provider"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.provider);
+ if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled);
return writer;
};
/**
- * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.container.v1.Cluster.verify|verify} messages.
+ * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.container.v1.NetworkPolicy.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.Cluster
+ * @memberof google.container.v1.NetworkPolicy
* @static
- * @param {google.container.v1.ICluster} message Cluster message or plain object to encode
+ * @param {google.container.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- Cluster.encodeDelimited = function encodeDelimited(message, writer) {
+ NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a Cluster message from the specified reader or buffer.
+ * Decodes a NetworkPolicy message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.Cluster
+ * @memberof google.container.v1.NetworkPolicy
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.Cluster} Cluster
+ * @returns {google.container.v1.NetworkPolicy} NetworkPolicy
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- Cluster.decode = function decode(reader, length) {
+ NetworkPolicy.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.Cluster(), key, value;
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NetworkPolicy();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.name = reader.string();
+ message.provider = reader.int32();
break;
case 2:
- message.description = reader.string();
- break;
- case 3:
- message.initialNodeCount = reader.int32();
- break;
- case 4:
- message.nodeConfig = $root.google.container.v1.NodeConfig.decode(reader, reader.uint32());
- break;
- case 5:
- message.masterAuth = $root.google.container.v1.MasterAuth.decode(reader, reader.uint32());
- break;
- case 6:
- message.loggingService = reader.string();
- break;
- case 7:
- message.monitoringService = reader.string();
- break;
- case 8:
- message.network = reader.string();
- break;
- case 9:
- message.clusterIpv4Cidr = reader.string();
- break;
- case 10:
- message.addonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32());
- break;
- case 11:
- message.subnetwork = reader.string();
- break;
- case 12:
- if (!(message.nodePools && message.nodePools.length))
- message.nodePools = [];
- message.nodePools.push($root.google.container.v1.NodePool.decode(reader, reader.uint32()));
- break;
- case 13:
- if (!(message.locations && message.locations.length))
- message.locations = [];
- message.locations.push(reader.string());
- break;
- case 14:
- message.enableKubernetesAlpha = reader.bool();
- break;
- case 15:
- if (message.resourceLabels === $util.emptyObject)
- message.resourceLabels = {};
- 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.resourceLabels[key] = value;
- break;
- case 16:
- message.labelFingerprint = reader.string();
- break;
- case 18:
- message.legacyAbac = $root.google.container.v1.LegacyAbac.decode(reader, reader.uint32());
- break;
- case 19:
- message.networkPolicy = $root.google.container.v1.NetworkPolicy.decode(reader, reader.uint32());
- break;
- case 20:
- message.ipAllocationPolicy = $root.google.container.v1.IPAllocationPolicy.decode(reader, reader.uint32());
- break;
- case 22:
- message.masterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.decode(reader, reader.uint32());
- break;
- case 23:
- message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.decode(reader, reader.uint32());
- break;
- case 24:
- message.binaryAuthorization = $root.google.container.v1.BinaryAuthorization.decode(reader, reader.uint32());
- break;
- case 26:
- message.autoscaling = $root.google.container.v1.ClusterAutoscaling.decode(reader, reader.uint32());
- break;
- case 27:
- message.networkConfig = $root.google.container.v1.NetworkConfig.decode(reader, reader.uint32());
- break;
- case 30:
- message.defaultMaxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.decode(reader, reader.uint32());
- break;
- case 33:
- message.resourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.decode(reader, reader.uint32());
- break;
- case 34:
- message.authenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.decode(reader, reader.uint32());
- break;
- case 37:
- message.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.decode(reader, reader.uint32());
- break;
- case 38:
- message.databaseEncryption = $root.google.container.v1.DatabaseEncryption.decode(reader, reader.uint32());
- break;
- case 39:
- message.verticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.decode(reader, reader.uint32());
- break;
- case 100:
- message.selfLink = reader.string();
+ message.enabled = reader.bool();
break;
- case 101:
- message.zone = reader.string();
+ default:
+ reader.skipType(tag & 7);
break;
- case 102:
- message.endpoint = reader.string();
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.NetworkPolicy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.NetworkPolicy} NetworkPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NetworkPolicy.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NetworkPolicy message.
+ * @function verify
+ * @memberof google.container.v1.NetworkPolicy
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NetworkPolicy.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.provider != null && message.hasOwnProperty("provider"))
+ switch (message.provider) {
+ default:
+ return "provider: enum value expected";
+ case 0:
+ case 1:
break;
- case 103:
- message.initialClusterVersion = reader.string();
- break;
- case 104:
- message.currentMasterVersion = reader.string();
- break;
- case 105:
- message.currentNodeVersion = reader.string();
- break;
- case 106:
- message.createTime = reader.string();
- break;
- case 107:
- message.status = reader.int32();
- break;
- case 108:
- message.statusMessage = reader.string();
- break;
- case 109:
- message.nodeIpv4CidrSize = reader.int32();
- break;
- case 110:
- message.servicesIpv4Cidr = reader.string();
- break;
- case 111:
- if (!(message.instanceGroupUrls && message.instanceGroupUrls.length))
- message.instanceGroupUrls = [];
- message.instanceGroupUrls.push(reader.string());
- break;
- case 112:
- message.currentNodeCount = reader.int32();
- break;
- case 113:
- message.expireTime = reader.string();
- break;
- case 114:
- message.location = reader.string();
- break;
- case 115:
- message.enableTpu = reader.bool();
- break;
- case 116:
- message.tpuIpv4CidrBlock = reader.string();
- break;
- case 118:
- if (!(message.conditions && message.conditions.length))
- message.conditions = [];
- message.conditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32()));
+ }
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ if (typeof message.enabled !== "boolean")
+ return "enabled: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.NetworkPolicy
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.NetworkPolicy} NetworkPolicy
+ */
+ NetworkPolicy.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.NetworkPolicy)
+ return object;
+ var message = new $root.google.container.v1.NetworkPolicy();
+ switch (object.provider) {
+ case "PROVIDER_UNSPECIFIED":
+ case 0:
+ message.provider = 0;
+ break;
+ case "CALICO":
+ case 1:
+ message.provider = 1;
+ break;
+ }
+ if (object.enabled != null)
+ message.enabled = Boolean(object.enabled);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.NetworkPolicy
+ * @static
+ * @param {google.container.v1.NetworkPolicy} message NetworkPolicy
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NetworkPolicy.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.provider = options.enums === String ? "PROVIDER_UNSPECIFIED" : 0;
+ object.enabled = false;
+ }
+ if (message.provider != null && message.hasOwnProperty("provider"))
+ object.provider = options.enums === String ? $root.google.container.v1.NetworkPolicy.Provider[message.provider] : message.provider;
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ object.enabled = message.enabled;
+ return object;
+ };
+
+ /**
+ * Converts this NetworkPolicy to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.NetworkPolicy
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NetworkPolicy.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Provider enum.
+ * @name google.container.v1.NetworkPolicy.Provider
+ * @enum {number}
+ * @property {number} PROVIDER_UNSPECIFIED=0 PROVIDER_UNSPECIFIED value
+ * @property {number} CALICO=1 CALICO value
+ */
+ NetworkPolicy.Provider = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "PROVIDER_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CALICO"] = 1;
+ return values;
+ })();
+
+ return NetworkPolicy;
+ })();
+
+ v1.BinaryAuthorization = (function() {
+
+ /**
+ * Properties of a BinaryAuthorization.
+ * @memberof google.container.v1
+ * @interface IBinaryAuthorization
+ * @property {boolean|null} [enabled] BinaryAuthorization enabled
+ */
+
+ /**
+ * Constructs a new BinaryAuthorization.
+ * @memberof google.container.v1
+ * @classdesc Represents a BinaryAuthorization.
+ * @implements IBinaryAuthorization
+ * @constructor
+ * @param {google.container.v1.IBinaryAuthorization=} [properties] Properties to set
+ */
+ function BinaryAuthorization(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]];
+ }
+
+ /**
+ * BinaryAuthorization enabled.
+ * @member {boolean} enabled
+ * @memberof google.container.v1.BinaryAuthorization
+ * @instance
+ */
+ BinaryAuthorization.prototype.enabled = false;
+
+ /**
+ * Creates a new BinaryAuthorization instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.BinaryAuthorization
+ * @static
+ * @param {google.container.v1.IBinaryAuthorization=} [properties] Properties to set
+ * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization instance
+ */
+ BinaryAuthorization.create = function create(properties) {
+ return new BinaryAuthorization(properties);
+ };
+
+ /**
+ * Encodes the specified BinaryAuthorization message. Does not implicitly {@link google.container.v1.BinaryAuthorization.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.BinaryAuthorization
+ * @static
+ * @param {google.container.v1.IBinaryAuthorization} message BinaryAuthorization message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BinaryAuthorization.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified BinaryAuthorization message, length delimited. Does not implicitly {@link google.container.v1.BinaryAuthorization.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.BinaryAuthorization
+ * @static
+ * @param {google.container.v1.IBinaryAuthorization} message BinaryAuthorization message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ BinaryAuthorization.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a BinaryAuthorization message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.BinaryAuthorization
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ BinaryAuthorization.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.BinaryAuthorization();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.enabled = reader.bool();
break;
default:
reader.skipType(tag & 7);
@@ -6739,722 +6810,5371 @@
};
/**
- * Decodes a Cluster message from the specified reader or buffer, length delimited.
+ * Decodes a BinaryAuthorization message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.Cluster
+ * @memberof google.container.v1.BinaryAuthorization
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.Cluster} Cluster
+ * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- Cluster.decodeDelimited = function decodeDelimited(reader) {
+ BinaryAuthorization.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a Cluster message.
+ * Verifies a BinaryAuthorization message.
* @function verify
- * @memberof google.container.v1.Cluster
+ * @memberof google.container.v1.BinaryAuthorization
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- Cluster.verify = function verify(message) {
+ BinaryAuthorization.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.name != null && message.hasOwnProperty("name"))
- if (!$util.isString(message.name))
- return "name: string expected";
- if (message.description != null && message.hasOwnProperty("description"))
- if (!$util.isString(message.description))
- return "description: string expected";
- if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount"))
- if (!$util.isInteger(message.initialNodeCount))
- return "initialNodeCount: integer expected";
- if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) {
- var error = $root.google.container.v1.NodeConfig.verify(message.nodeConfig);
- if (error)
- return "nodeConfig." + error;
- }
- if (message.masterAuth != null && message.hasOwnProperty("masterAuth")) {
- var error = $root.google.container.v1.MasterAuth.verify(message.masterAuth);
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ if (typeof message.enabled !== "boolean")
+ return "enabled: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a BinaryAuthorization message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.BinaryAuthorization
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization
+ */
+ BinaryAuthorization.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.BinaryAuthorization)
+ return object;
+ var message = new $root.google.container.v1.BinaryAuthorization();
+ if (object.enabled != null)
+ message.enabled = Boolean(object.enabled);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a BinaryAuthorization message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.BinaryAuthorization
+ * @static
+ * @param {google.container.v1.BinaryAuthorization} message BinaryAuthorization
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ BinaryAuthorization.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.enabled = false;
+ if (message.enabled != null && message.hasOwnProperty("enabled"))
+ object.enabled = message.enabled;
+ return object;
+ };
+
+ /**
+ * Converts this BinaryAuthorization to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.BinaryAuthorization
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ BinaryAuthorization.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return BinaryAuthorization;
+ })();
+
+ v1.IPAllocationPolicy = (function() {
+
+ /**
+ * Properties of a IPAllocationPolicy.
+ * @memberof google.container.v1
+ * @interface IIPAllocationPolicy
+ * @property {boolean|null} [useIpAliases] IPAllocationPolicy useIpAliases
+ * @property {boolean|null} [createSubnetwork] IPAllocationPolicy createSubnetwork
+ * @property {string|null} [subnetworkName] IPAllocationPolicy subnetworkName
+ * @property {string|null} [clusterIpv4Cidr] IPAllocationPolicy clusterIpv4Cidr
+ * @property {string|null} [nodeIpv4Cidr] IPAllocationPolicy nodeIpv4Cidr
+ * @property {string|null} [servicesIpv4Cidr] IPAllocationPolicy servicesIpv4Cidr
+ * @property {string|null} [clusterSecondaryRangeName] IPAllocationPolicy clusterSecondaryRangeName
+ * @property {string|null} [servicesSecondaryRangeName] IPAllocationPolicy servicesSecondaryRangeName
+ * @property {string|null} [clusterIpv4CidrBlock] IPAllocationPolicy clusterIpv4CidrBlock
+ * @property {string|null} [nodeIpv4CidrBlock] IPAllocationPolicy nodeIpv4CidrBlock
+ * @property {string|null} [servicesIpv4CidrBlock] IPAllocationPolicy servicesIpv4CidrBlock
+ * @property {string|null} [tpuIpv4CidrBlock] IPAllocationPolicy tpuIpv4CidrBlock
+ * @property {boolean|null} [useRoutes] IPAllocationPolicy useRoutes
+ */
+
+ /**
+ * Constructs a new IPAllocationPolicy.
+ * @memberof google.container.v1
+ * @classdesc Represents a IPAllocationPolicy.
+ * @implements IIPAllocationPolicy
+ * @constructor
+ * @param {google.container.v1.IIPAllocationPolicy=} [properties] Properties to set
+ */
+ function IPAllocationPolicy(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]];
+ }
+
+ /**
+ * IPAllocationPolicy useIpAliases.
+ * @member {boolean} useIpAliases
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.useIpAliases = false;
+
+ /**
+ * IPAllocationPolicy createSubnetwork.
+ * @member {boolean} createSubnetwork
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.createSubnetwork = false;
+
+ /**
+ * IPAllocationPolicy subnetworkName.
+ * @member {string} subnetworkName
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.subnetworkName = "";
+
+ /**
+ * IPAllocationPolicy clusterIpv4Cidr.
+ * @member {string} clusterIpv4Cidr
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.clusterIpv4Cidr = "";
+
+ /**
+ * IPAllocationPolicy nodeIpv4Cidr.
+ * @member {string} nodeIpv4Cidr
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.nodeIpv4Cidr = "";
+
+ /**
+ * IPAllocationPolicy servicesIpv4Cidr.
+ * @member {string} servicesIpv4Cidr
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.servicesIpv4Cidr = "";
+
+ /**
+ * IPAllocationPolicy clusterSecondaryRangeName.
+ * @member {string} clusterSecondaryRangeName
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.clusterSecondaryRangeName = "";
+
+ /**
+ * IPAllocationPolicy servicesSecondaryRangeName.
+ * @member {string} servicesSecondaryRangeName
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.servicesSecondaryRangeName = "";
+
+ /**
+ * IPAllocationPolicy clusterIpv4CidrBlock.
+ * @member {string} clusterIpv4CidrBlock
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.clusterIpv4CidrBlock = "";
+
+ /**
+ * IPAllocationPolicy nodeIpv4CidrBlock.
+ * @member {string} nodeIpv4CidrBlock
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.nodeIpv4CidrBlock = "";
+
+ /**
+ * IPAllocationPolicy servicesIpv4CidrBlock.
+ * @member {string} servicesIpv4CidrBlock
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.servicesIpv4CidrBlock = "";
+
+ /**
+ * IPAllocationPolicy tpuIpv4CidrBlock.
+ * @member {string} tpuIpv4CidrBlock
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.tpuIpv4CidrBlock = "";
+
+ /**
+ * IPAllocationPolicy useRoutes.
+ * @member {boolean} useRoutes
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ */
+ IPAllocationPolicy.prototype.useRoutes = false;
+
+ /**
+ * Creates a new IPAllocationPolicy instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @static
+ * @param {google.container.v1.IIPAllocationPolicy=} [properties] Properties to set
+ * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy instance
+ */
+ IPAllocationPolicy.create = function create(properties) {
+ return new IPAllocationPolicy(properties);
+ };
+
+ /**
+ * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.container.v1.IPAllocationPolicy.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @static
+ * @param {google.container.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IPAllocationPolicy.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.useIpAliases != null && Object.hasOwnProperty.call(message, "useIpAliases"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases);
+ if (message.createSubnetwork != null && Object.hasOwnProperty.call(message, "createSubnetwork"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.createSubnetwork);
+ if (message.subnetworkName != null && Object.hasOwnProperty.call(message, "subnetworkName"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.subnetworkName);
+ if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4Cidr);
+ if (message.nodeIpv4Cidr != null && Object.hasOwnProperty.call(message, "nodeIpv4Cidr"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeIpv4Cidr);
+ if (message.servicesIpv4Cidr != null && Object.hasOwnProperty.call(message, "servicesIpv4Cidr"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.servicesIpv4Cidr);
+ if (message.clusterSecondaryRangeName != null && Object.hasOwnProperty.call(message, "clusterSecondaryRangeName"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.clusterSecondaryRangeName);
+ if (message.servicesSecondaryRangeName != null && Object.hasOwnProperty.call(message, "servicesSecondaryRangeName"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.servicesSecondaryRangeName);
+ if (message.clusterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "clusterIpv4CidrBlock"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4CidrBlock);
+ if (message.nodeIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrBlock"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.nodeIpv4CidrBlock);
+ if (message.servicesIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "servicesIpv4CidrBlock"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.servicesIpv4CidrBlock);
+ if (message.tpuIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "tpuIpv4CidrBlock"))
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.tpuIpv4CidrBlock);
+ if (message.useRoutes != null && Object.hasOwnProperty.call(message, "useRoutes"))
+ writer.uint32(/* id 15, wireType 0 =*/120).bool(message.useRoutes);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.container.v1.IPAllocationPolicy.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @static
+ * @param {google.container.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ IPAllocationPolicy.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a IPAllocationPolicy message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IPAllocationPolicy.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.IPAllocationPolicy();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.useIpAliases = reader.bool();
+ break;
+ case 2:
+ message.createSubnetwork = reader.bool();
+ break;
+ case 3:
+ message.subnetworkName = reader.string();
+ break;
+ case 4:
+ message.clusterIpv4Cidr = reader.string();
+ break;
+ case 5:
+ message.nodeIpv4Cidr = reader.string();
+ break;
+ case 6:
+ message.servicesIpv4Cidr = reader.string();
+ break;
+ case 7:
+ message.clusterSecondaryRangeName = reader.string();
+ break;
+ case 8:
+ message.servicesSecondaryRangeName = reader.string();
+ break;
+ case 9:
+ message.clusterIpv4CidrBlock = reader.string();
+ break;
+ case 10:
+ message.nodeIpv4CidrBlock = reader.string();
+ break;
+ case 11:
+ message.servicesIpv4CidrBlock = reader.string();
+ break;
+ case 13:
+ message.tpuIpv4CidrBlock = reader.string();
+ break;
+ case 15:
+ message.useRoutes = reader.bool();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a IPAllocationPolicy message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ IPAllocationPolicy.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a IPAllocationPolicy message.
+ * @function verify
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ IPAllocationPolicy.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases"))
+ if (typeof message.useIpAliases !== "boolean")
+ return "useIpAliases: boolean expected";
+ if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork"))
+ if (typeof message.createSubnetwork !== "boolean")
+ return "createSubnetwork: boolean expected";
+ if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName"))
+ if (!$util.isString(message.subnetworkName))
+ return "subnetworkName: string expected";
+ if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr"))
+ if (!$util.isString(message.clusterIpv4Cidr))
+ return "clusterIpv4Cidr: string expected";
+ if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr"))
+ if (!$util.isString(message.nodeIpv4Cidr))
+ return "nodeIpv4Cidr: string expected";
+ if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr"))
+ if (!$util.isString(message.servicesIpv4Cidr))
+ return "servicesIpv4Cidr: string expected";
+ if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName"))
+ if (!$util.isString(message.clusterSecondaryRangeName))
+ return "clusterSecondaryRangeName: string expected";
+ if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName"))
+ if (!$util.isString(message.servicesSecondaryRangeName))
+ return "servicesSecondaryRangeName: string expected";
+ if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock"))
+ if (!$util.isString(message.clusterIpv4CidrBlock))
+ return "clusterIpv4CidrBlock: string expected";
+ if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock"))
+ if (!$util.isString(message.nodeIpv4CidrBlock))
+ return "nodeIpv4CidrBlock: string expected";
+ if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock"))
+ if (!$util.isString(message.servicesIpv4CidrBlock))
+ return "servicesIpv4CidrBlock: string expected";
+ if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock"))
+ if (!$util.isString(message.tpuIpv4CidrBlock))
+ return "tpuIpv4CidrBlock: string expected";
+ if (message.useRoutes != null && message.hasOwnProperty("useRoutes"))
+ if (typeof message.useRoutes !== "boolean")
+ return "useRoutes: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a IPAllocationPolicy message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy
+ */
+ IPAllocationPolicy.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.IPAllocationPolicy)
+ return object;
+ var message = new $root.google.container.v1.IPAllocationPolicy();
+ if (object.useIpAliases != null)
+ message.useIpAliases = Boolean(object.useIpAliases);
+ if (object.createSubnetwork != null)
+ message.createSubnetwork = Boolean(object.createSubnetwork);
+ if (object.subnetworkName != null)
+ message.subnetworkName = String(object.subnetworkName);
+ if (object.clusterIpv4Cidr != null)
+ message.clusterIpv4Cidr = String(object.clusterIpv4Cidr);
+ if (object.nodeIpv4Cidr != null)
+ message.nodeIpv4Cidr = String(object.nodeIpv4Cidr);
+ if (object.servicesIpv4Cidr != null)
+ message.servicesIpv4Cidr = String(object.servicesIpv4Cidr);
+ if (object.clusterSecondaryRangeName != null)
+ message.clusterSecondaryRangeName = String(object.clusterSecondaryRangeName);
+ if (object.servicesSecondaryRangeName != null)
+ message.servicesSecondaryRangeName = String(object.servicesSecondaryRangeName);
+ if (object.clusterIpv4CidrBlock != null)
+ message.clusterIpv4CidrBlock = String(object.clusterIpv4CidrBlock);
+ if (object.nodeIpv4CidrBlock != null)
+ message.nodeIpv4CidrBlock = String(object.nodeIpv4CidrBlock);
+ if (object.servicesIpv4CidrBlock != null)
+ message.servicesIpv4CidrBlock = String(object.servicesIpv4CidrBlock);
+ if (object.tpuIpv4CidrBlock != null)
+ message.tpuIpv4CidrBlock = String(object.tpuIpv4CidrBlock);
+ if (object.useRoutes != null)
+ message.useRoutes = Boolean(object.useRoutes);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a IPAllocationPolicy message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @static
+ * @param {google.container.v1.IPAllocationPolicy} message IPAllocationPolicy
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ IPAllocationPolicy.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.useIpAliases = false;
+ object.createSubnetwork = false;
+ object.subnetworkName = "";
+ object.clusterIpv4Cidr = "";
+ object.nodeIpv4Cidr = "";
+ object.servicesIpv4Cidr = "";
+ object.clusterSecondaryRangeName = "";
+ object.servicesSecondaryRangeName = "";
+ object.clusterIpv4CidrBlock = "";
+ object.nodeIpv4CidrBlock = "";
+ object.servicesIpv4CidrBlock = "";
+ object.tpuIpv4CidrBlock = "";
+ object.useRoutes = false;
+ }
+ if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases"))
+ object.useIpAliases = message.useIpAliases;
+ if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork"))
+ object.createSubnetwork = message.createSubnetwork;
+ if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName"))
+ object.subnetworkName = message.subnetworkName;
+ if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr"))
+ object.clusterIpv4Cidr = message.clusterIpv4Cidr;
+ if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr"))
+ object.nodeIpv4Cidr = message.nodeIpv4Cidr;
+ if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr"))
+ object.servicesIpv4Cidr = message.servicesIpv4Cidr;
+ if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName"))
+ object.clusterSecondaryRangeName = message.clusterSecondaryRangeName;
+ if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName"))
+ object.servicesSecondaryRangeName = message.servicesSecondaryRangeName;
+ if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock"))
+ object.clusterIpv4CidrBlock = message.clusterIpv4CidrBlock;
+ if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock"))
+ object.nodeIpv4CidrBlock = message.nodeIpv4CidrBlock;
+ if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock"))
+ object.servicesIpv4CidrBlock = message.servicesIpv4CidrBlock;
+ if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock"))
+ object.tpuIpv4CidrBlock = message.tpuIpv4CidrBlock;
+ if (message.useRoutes != null && message.hasOwnProperty("useRoutes"))
+ object.useRoutes = message.useRoutes;
+ return object;
+ };
+
+ /**
+ * Converts this IPAllocationPolicy to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.IPAllocationPolicy
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ IPAllocationPolicy.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return IPAllocationPolicy;
+ })();
+
+ v1.Cluster = (function() {
+
+ /**
+ * Properties of a Cluster.
+ * @memberof google.container.v1
+ * @interface ICluster
+ * @property {string|null} [name] Cluster name
+ * @property {string|null} [description] Cluster description
+ * @property {number|null} [initialNodeCount] Cluster initialNodeCount
+ * @property {google.container.v1.INodeConfig|null} [nodeConfig] Cluster nodeConfig
+ * @property {google.container.v1.IMasterAuth|null} [masterAuth] Cluster masterAuth
+ * @property {string|null} [loggingService] Cluster loggingService
+ * @property {string|null} [monitoringService] Cluster monitoringService
+ * @property {string|null} [network] Cluster network
+ * @property {string|null} [clusterIpv4Cidr] Cluster clusterIpv4Cidr
+ * @property {google.container.v1.IAddonsConfig|null} [addonsConfig] Cluster addonsConfig
+ * @property {string|null} [subnetwork] Cluster subnetwork
+ * @property {Array.|null} [nodePools] Cluster nodePools
+ * @property {Array.|null} [locations] Cluster locations
+ * @property {boolean|null} [enableKubernetesAlpha] Cluster enableKubernetesAlpha
+ * @property {Object.|null} [resourceLabels] Cluster resourceLabels
+ * @property {string|null} [labelFingerprint] Cluster labelFingerprint
+ * @property {google.container.v1.ILegacyAbac|null} [legacyAbac] Cluster legacyAbac
+ * @property {google.container.v1.INetworkPolicy|null} [networkPolicy] Cluster networkPolicy
+ * @property {google.container.v1.IIPAllocationPolicy|null} [ipAllocationPolicy] Cluster ipAllocationPolicy
+ * @property {google.container.v1.IMasterAuthorizedNetworksConfig|null} [masterAuthorizedNetworksConfig] Cluster masterAuthorizedNetworksConfig
+ * @property {google.container.v1.IMaintenancePolicy|null} [maintenancePolicy] Cluster maintenancePolicy
+ * @property {google.container.v1.IBinaryAuthorization|null} [binaryAuthorization] Cluster binaryAuthorization
+ * @property {google.container.v1.IClusterAutoscaling|null} [autoscaling] Cluster autoscaling
+ * @property {google.container.v1.INetworkConfig|null} [networkConfig] Cluster networkConfig
+ * @property {google.container.v1.IMaxPodsConstraint|null} [defaultMaxPodsConstraint] Cluster defaultMaxPodsConstraint
+ * @property {google.container.v1.IResourceUsageExportConfig|null} [resourceUsageExportConfig] Cluster resourceUsageExportConfig
+ * @property {google.container.v1.IAuthenticatorGroupsConfig|null} [authenticatorGroupsConfig] Cluster authenticatorGroupsConfig
+ * @property {google.container.v1.IPrivateClusterConfig|null} [privateClusterConfig] Cluster privateClusterConfig
+ * @property {google.container.v1.IDatabaseEncryption|null} [databaseEncryption] Cluster databaseEncryption
+ * @property {google.container.v1.IVerticalPodAutoscaling|null} [verticalPodAutoscaling] Cluster verticalPodAutoscaling
+ * @property {google.container.v1.IShieldedNodes|null} [shieldedNodes] Cluster shieldedNodes
+ * @property {google.container.v1.IReleaseChannel|null} [releaseChannel] Cluster releaseChannel
+ * @property {google.container.v1.IWorkloadIdentityConfig|null} [workloadIdentityConfig] Cluster workloadIdentityConfig
+ * @property {string|null} [selfLink] Cluster selfLink
+ * @property {string|null} [zone] Cluster zone
+ * @property {string|null} [endpoint] Cluster endpoint
+ * @property {string|null} [initialClusterVersion] Cluster initialClusterVersion
+ * @property {string|null} [currentMasterVersion] Cluster currentMasterVersion
+ * @property {string|null} [currentNodeVersion] Cluster currentNodeVersion
+ * @property {string|null} [createTime] Cluster createTime
+ * @property {google.container.v1.Cluster.Status|null} [status] Cluster status
+ * @property {string|null} [statusMessage] Cluster statusMessage
+ * @property {number|null} [nodeIpv4CidrSize] Cluster nodeIpv4CidrSize
+ * @property {string|null} [servicesIpv4Cidr] Cluster servicesIpv4Cidr
+ * @property {Array.|null} [instanceGroupUrls] Cluster instanceGroupUrls
+ * @property {number|null} [currentNodeCount] Cluster currentNodeCount
+ * @property {string|null} [expireTime] Cluster expireTime
+ * @property {string|null} [location] Cluster location
+ * @property {boolean|null} [enableTpu] Cluster enableTpu
+ * @property {string|null} [tpuIpv4CidrBlock] Cluster tpuIpv4CidrBlock
+ * @property {Array.|null} [conditions] Cluster conditions
+ */
+
+ /**
+ * Constructs a new Cluster.
+ * @memberof google.container.v1
+ * @classdesc Represents a Cluster.
+ * @implements ICluster
+ * @constructor
+ * @param {google.container.v1.ICluster=} [properties] Properties to set
+ */
+ function Cluster(properties) {
+ this.nodePools = [];
+ this.locations = [];
+ this.resourceLabels = {};
+ this.instanceGroupUrls = [];
+ this.conditions = [];
+ 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]];
+ }
+
+ /**
+ * Cluster name.
+ * @member {string} name
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.name = "";
+
+ /**
+ * Cluster description.
+ * @member {string} description
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.description = "";
+
+ /**
+ * Cluster initialNodeCount.
+ * @member {number} initialNodeCount
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.initialNodeCount = 0;
+
+ /**
+ * Cluster nodeConfig.
+ * @member {google.container.v1.INodeConfig|null|undefined} nodeConfig
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.nodeConfig = null;
+
+ /**
+ * Cluster masterAuth.
+ * @member {google.container.v1.IMasterAuth|null|undefined} masterAuth
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.masterAuth = null;
+
+ /**
+ * Cluster loggingService.
+ * @member {string} loggingService
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.loggingService = "";
+
+ /**
+ * Cluster monitoringService.
+ * @member {string} monitoringService
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.monitoringService = "";
+
+ /**
+ * Cluster network.
+ * @member {string} network
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.network = "";
+
+ /**
+ * Cluster clusterIpv4Cidr.
+ * @member {string} clusterIpv4Cidr
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.clusterIpv4Cidr = "";
+
+ /**
+ * Cluster addonsConfig.
+ * @member {google.container.v1.IAddonsConfig|null|undefined} addonsConfig
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.addonsConfig = null;
+
+ /**
+ * Cluster subnetwork.
+ * @member {string} subnetwork
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.subnetwork = "";
+
+ /**
+ * Cluster nodePools.
+ * @member {Array.} nodePools
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.nodePools = $util.emptyArray;
+
+ /**
+ * Cluster locations.
+ * @member {Array.} locations
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.locations = $util.emptyArray;
+
+ /**
+ * Cluster enableKubernetesAlpha.
+ * @member {boolean} enableKubernetesAlpha
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.enableKubernetesAlpha = false;
+
+ /**
+ * Cluster resourceLabels.
+ * @member {Object.} resourceLabels
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.resourceLabels = $util.emptyObject;
+
+ /**
+ * Cluster labelFingerprint.
+ * @member {string} labelFingerprint
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.labelFingerprint = "";
+
+ /**
+ * Cluster legacyAbac.
+ * @member {google.container.v1.ILegacyAbac|null|undefined} legacyAbac
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.legacyAbac = null;
+
+ /**
+ * Cluster networkPolicy.
+ * @member {google.container.v1.INetworkPolicy|null|undefined} networkPolicy
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.networkPolicy = null;
+
+ /**
+ * Cluster ipAllocationPolicy.
+ * @member {google.container.v1.IIPAllocationPolicy|null|undefined} ipAllocationPolicy
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.ipAllocationPolicy = null;
+
+ /**
+ * Cluster masterAuthorizedNetworksConfig.
+ * @member {google.container.v1.IMasterAuthorizedNetworksConfig|null|undefined} masterAuthorizedNetworksConfig
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.masterAuthorizedNetworksConfig = null;
+
+ /**
+ * Cluster maintenancePolicy.
+ * @member {google.container.v1.IMaintenancePolicy|null|undefined} maintenancePolicy
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.maintenancePolicy = null;
+
+ /**
+ * Cluster binaryAuthorization.
+ * @member {google.container.v1.IBinaryAuthorization|null|undefined} binaryAuthorization
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.binaryAuthorization = null;
+
+ /**
+ * Cluster autoscaling.
+ * @member {google.container.v1.IClusterAutoscaling|null|undefined} autoscaling
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.autoscaling = null;
+
+ /**
+ * Cluster networkConfig.
+ * @member {google.container.v1.INetworkConfig|null|undefined} networkConfig
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.networkConfig = null;
+
+ /**
+ * Cluster defaultMaxPodsConstraint.
+ * @member {google.container.v1.IMaxPodsConstraint|null|undefined} defaultMaxPodsConstraint
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.defaultMaxPodsConstraint = null;
+
+ /**
+ * Cluster resourceUsageExportConfig.
+ * @member {google.container.v1.IResourceUsageExportConfig|null|undefined} resourceUsageExportConfig
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.resourceUsageExportConfig = null;
+
+ /**
+ * Cluster authenticatorGroupsConfig.
+ * @member {google.container.v1.IAuthenticatorGroupsConfig|null|undefined} authenticatorGroupsConfig
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.authenticatorGroupsConfig = null;
+
+ /**
+ * Cluster privateClusterConfig.
+ * @member {google.container.v1.IPrivateClusterConfig|null|undefined} privateClusterConfig
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.privateClusterConfig = null;
+
+ /**
+ * Cluster databaseEncryption.
+ * @member {google.container.v1.IDatabaseEncryption|null|undefined} databaseEncryption
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.databaseEncryption = null;
+
+ /**
+ * Cluster verticalPodAutoscaling.
+ * @member {google.container.v1.IVerticalPodAutoscaling|null|undefined} verticalPodAutoscaling
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.verticalPodAutoscaling = null;
+
+ /**
+ * Cluster shieldedNodes.
+ * @member {google.container.v1.IShieldedNodes|null|undefined} shieldedNodes
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.shieldedNodes = null;
+
+ /**
+ * Cluster releaseChannel.
+ * @member {google.container.v1.IReleaseChannel|null|undefined} releaseChannel
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.releaseChannel = null;
+
+ /**
+ * Cluster workloadIdentityConfig.
+ * @member {google.container.v1.IWorkloadIdentityConfig|null|undefined} workloadIdentityConfig
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.workloadIdentityConfig = null;
+
+ /**
+ * Cluster selfLink.
+ * @member {string} selfLink
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.selfLink = "";
+
+ /**
+ * Cluster zone.
+ * @member {string} zone
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.zone = "";
+
+ /**
+ * Cluster endpoint.
+ * @member {string} endpoint
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.endpoint = "";
+
+ /**
+ * Cluster initialClusterVersion.
+ * @member {string} initialClusterVersion
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.initialClusterVersion = "";
+
+ /**
+ * Cluster currentMasterVersion.
+ * @member {string} currentMasterVersion
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.currentMasterVersion = "";
+
+ /**
+ * Cluster currentNodeVersion.
+ * @member {string} currentNodeVersion
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.currentNodeVersion = "";
+
+ /**
+ * Cluster createTime.
+ * @member {string} createTime
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.createTime = "";
+
+ /**
+ * Cluster status.
+ * @member {google.container.v1.Cluster.Status} status
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.status = 0;
+
+ /**
+ * Cluster statusMessage.
+ * @member {string} statusMessage
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.statusMessage = "";
+
+ /**
+ * Cluster nodeIpv4CidrSize.
+ * @member {number} nodeIpv4CidrSize
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.nodeIpv4CidrSize = 0;
+
+ /**
+ * Cluster servicesIpv4Cidr.
+ * @member {string} servicesIpv4Cidr
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.servicesIpv4Cidr = "";
+
+ /**
+ * Cluster instanceGroupUrls.
+ * @member {Array.} instanceGroupUrls
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.instanceGroupUrls = $util.emptyArray;
+
+ /**
+ * Cluster currentNodeCount.
+ * @member {number} currentNodeCount
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.currentNodeCount = 0;
+
+ /**
+ * Cluster expireTime.
+ * @member {string} expireTime
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.expireTime = "";
+
+ /**
+ * Cluster location.
+ * @member {string} location
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.location = "";
+
+ /**
+ * Cluster enableTpu.
+ * @member {boolean} enableTpu
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.enableTpu = false;
+
+ /**
+ * Cluster tpuIpv4CidrBlock.
+ * @member {string} tpuIpv4CidrBlock
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.tpuIpv4CidrBlock = "";
+
+ /**
+ * Cluster conditions.
+ * @member {Array.} conditions
+ * @memberof google.container.v1.Cluster
+ * @instance
+ */
+ Cluster.prototype.conditions = $util.emptyArray;
+
+ /**
+ * Creates a new Cluster instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.Cluster
+ * @static
+ * @param {google.container.v1.ICluster=} [properties] Properties to set
+ * @returns {google.container.v1.Cluster} Cluster instance
+ */
+ Cluster.create = function create(properties) {
+ return new Cluster(properties);
+ };
+
+ /**
+ * Encodes the specified Cluster message. Does not implicitly {@link google.container.v1.Cluster.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.Cluster
+ * @static
+ * @param {google.container.v1.ICluster} message Cluster message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Cluster.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount);
+ if (message.nodeConfig != null && Object.hasOwnProperty.call(message, "nodeConfig"))
+ $root.google.container.v1.NodeConfig.encode(message.nodeConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.masterAuth != null && Object.hasOwnProperty.call(message, "masterAuth"))
+ $root.google.container.v1.MasterAuth.encode(message.masterAuth, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.loggingService != null && Object.hasOwnProperty.call(message, "loggingService"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.loggingService);
+ if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.monitoringService);
+ if (message.network != null && Object.hasOwnProperty.call(message, "network"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.network);
+ if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4Cidr);
+ if (message.addonsConfig != null && Object.hasOwnProperty.call(message, "addonsConfig"))
+ $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.subnetwork);
+ if (message.nodePools != null && message.nodePools.length)
+ for (var i = 0; i < message.nodePools.length; ++i)
+ $root.google.container.v1.NodePool.encode(message.nodePools[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
+ if (message.locations != null && message.locations.length)
+ for (var i = 0; i < message.locations.length; ++i)
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.locations[i]);
+ if (message.enableKubernetesAlpha != null && Object.hasOwnProperty.call(message, "enableKubernetesAlpha"))
+ writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableKubernetesAlpha);
+ if (message.resourceLabels != null && Object.hasOwnProperty.call(message, "resourceLabels"))
+ for (var keys = Object.keys(message.resourceLabels), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceLabels[keys[i]]).ldelim();
+ if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint"))
+ writer.uint32(/* id 16, wireType 2 =*/130).string(message.labelFingerprint);
+ if (message.legacyAbac != null && Object.hasOwnProperty.call(message, "legacyAbac"))
+ $root.google.container.v1.LegacyAbac.encode(message.legacyAbac, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
+ if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy"))
+ $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
+ if (message.ipAllocationPolicy != null && Object.hasOwnProperty.call(message, "ipAllocationPolicy"))
+ $root.google.container.v1.IPAllocationPolicy.encode(message.ipAllocationPolicy, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
+ if (message.masterAuthorizedNetworksConfig != null && Object.hasOwnProperty.call(message, "masterAuthorizedNetworksConfig"))
+ $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.masterAuthorizedNetworksConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
+ if (message.maintenancePolicy != null && Object.hasOwnProperty.call(message, "maintenancePolicy"))
+ $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
+ if (message.binaryAuthorization != null && Object.hasOwnProperty.call(message, "binaryAuthorization"))
+ $root.google.container.v1.BinaryAuthorization.encode(message.binaryAuthorization, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
+ if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling"))
+ $root.google.container.v1.ClusterAutoscaling.encode(message.autoscaling, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
+ if (message.networkConfig != null && Object.hasOwnProperty.call(message, "networkConfig"))
+ $root.google.container.v1.NetworkConfig.encode(message.networkConfig, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
+ if (message.defaultMaxPodsConstraint != null && Object.hasOwnProperty.call(message, "defaultMaxPodsConstraint"))
+ $root.google.container.v1.MaxPodsConstraint.encode(message.defaultMaxPodsConstraint, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim();
+ if (message.resourceUsageExportConfig != null && Object.hasOwnProperty.call(message, "resourceUsageExportConfig"))
+ $root.google.container.v1.ResourceUsageExportConfig.encode(message.resourceUsageExportConfig, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim();
+ if (message.authenticatorGroupsConfig != null && Object.hasOwnProperty.call(message, "authenticatorGroupsConfig"))
+ $root.google.container.v1.AuthenticatorGroupsConfig.encode(message.authenticatorGroupsConfig, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim();
+ if (message.privateClusterConfig != null && Object.hasOwnProperty.call(message, "privateClusterConfig"))
+ $root.google.container.v1.PrivateClusterConfig.encode(message.privateClusterConfig, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim();
+ if (message.databaseEncryption != null && Object.hasOwnProperty.call(message, "databaseEncryption"))
+ $root.google.container.v1.DatabaseEncryption.encode(message.databaseEncryption, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim();
+ if (message.verticalPodAutoscaling != null && Object.hasOwnProperty.call(message, "verticalPodAutoscaling"))
+ $root.google.container.v1.VerticalPodAutoscaling.encode(message.verticalPodAutoscaling, writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim();
+ if (message.shieldedNodes != null && Object.hasOwnProperty.call(message, "shieldedNodes"))
+ $root.google.container.v1.ShieldedNodes.encode(message.shieldedNodes, writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim();
+ if (message.releaseChannel != null && Object.hasOwnProperty.call(message, "releaseChannel"))
+ $root.google.container.v1.ReleaseChannel.encode(message.releaseChannel, writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim();
+ if (message.workloadIdentityConfig != null && Object.hasOwnProperty.call(message, "workloadIdentityConfig"))
+ $root.google.container.v1.WorkloadIdentityConfig.encode(message.workloadIdentityConfig, writer.uint32(/* id 43, wireType 2 =*/346).fork()).ldelim();
+ if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink"))
+ writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink);
+ if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
+ writer.uint32(/* id 101, wireType 2 =*/810).string(message.zone);
+ if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint"))
+ writer.uint32(/* id 102, wireType 2 =*/818).string(message.endpoint);
+ if (message.initialClusterVersion != null && Object.hasOwnProperty.call(message, "initialClusterVersion"))
+ writer.uint32(/* id 103, wireType 2 =*/826).string(message.initialClusterVersion);
+ if (message.currentMasterVersion != null && Object.hasOwnProperty.call(message, "currentMasterVersion"))
+ writer.uint32(/* id 104, wireType 2 =*/834).string(message.currentMasterVersion);
+ if (message.currentNodeVersion != null && Object.hasOwnProperty.call(message, "currentNodeVersion"))
+ writer.uint32(/* id 105, wireType 2 =*/842).string(message.currentNodeVersion);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ writer.uint32(/* id 106, wireType 2 =*/850).string(message.createTime);
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
+ writer.uint32(/* id 107, wireType 0 =*/856).int32(message.status);
+ if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage"))
+ writer.uint32(/* id 108, wireType 2 =*/866).string(message.statusMessage);
+ if (message.nodeIpv4CidrSize != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrSize"))
+ writer.uint32(/* id 109, wireType 0 =*/872).int32(message.nodeIpv4CidrSize);
+ if (message.servicesIpv4Cidr != null && Object.hasOwnProperty.call(message, "servicesIpv4Cidr"))
+ writer.uint32(/* id 110, wireType 2 =*/882).string(message.servicesIpv4Cidr);
+ if (message.instanceGroupUrls != null && message.instanceGroupUrls.length)
+ for (var i = 0; i < message.instanceGroupUrls.length; ++i)
+ writer.uint32(/* id 111, wireType 2 =*/890).string(message.instanceGroupUrls[i]);
+ if (message.currentNodeCount != null && Object.hasOwnProperty.call(message, "currentNodeCount"))
+ writer.uint32(/* id 112, wireType 0 =*/896).int32(message.currentNodeCount);
+ if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime"))
+ writer.uint32(/* id 113, wireType 2 =*/906).string(message.expireTime);
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ writer.uint32(/* id 114, wireType 2 =*/914).string(message.location);
+ if (message.enableTpu != null && Object.hasOwnProperty.call(message, "enableTpu"))
+ writer.uint32(/* id 115, wireType 0 =*/920).bool(message.enableTpu);
+ if (message.tpuIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "tpuIpv4CidrBlock"))
+ writer.uint32(/* id 116, wireType 2 =*/930).string(message.tpuIpv4CidrBlock);
+ if (message.conditions != null && message.conditions.length)
+ for (var i = 0; i < message.conditions.length; ++i)
+ $root.google.container.v1.StatusCondition.encode(message.conditions[i], writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.container.v1.Cluster.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.Cluster
+ * @static
+ * @param {google.container.v1.ICluster} message Cluster message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Cluster.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Cluster message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.Cluster
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.Cluster} Cluster
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Cluster.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.Cluster(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.name = reader.string();
+ break;
+ case 2:
+ message.description = reader.string();
+ break;
+ case 3:
+ message.initialNodeCount = reader.int32();
+ break;
+ case 4:
+ message.nodeConfig = $root.google.container.v1.NodeConfig.decode(reader, reader.uint32());
+ break;
+ case 5:
+ message.masterAuth = $root.google.container.v1.MasterAuth.decode(reader, reader.uint32());
+ break;
+ case 6:
+ message.loggingService = reader.string();
+ break;
+ case 7:
+ message.monitoringService = reader.string();
+ break;
+ case 8:
+ message.network = reader.string();
+ break;
+ case 9:
+ message.clusterIpv4Cidr = reader.string();
+ break;
+ case 10:
+ message.addonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32());
+ break;
+ case 11:
+ message.subnetwork = reader.string();
+ break;
+ case 12:
+ if (!(message.nodePools && message.nodePools.length))
+ message.nodePools = [];
+ message.nodePools.push($root.google.container.v1.NodePool.decode(reader, reader.uint32()));
+ break;
+ case 13:
+ if (!(message.locations && message.locations.length))
+ message.locations = [];
+ message.locations.push(reader.string());
+ break;
+ case 14:
+ message.enableKubernetesAlpha = reader.bool();
+ break;
+ case 15:
+ if (message.resourceLabels === $util.emptyObject)
+ message.resourceLabels = {};
+ 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.resourceLabels[key] = value;
+ break;
+ case 16:
+ message.labelFingerprint = reader.string();
+ break;
+ case 18:
+ message.legacyAbac = $root.google.container.v1.LegacyAbac.decode(reader, reader.uint32());
+ break;
+ case 19:
+ message.networkPolicy = $root.google.container.v1.NetworkPolicy.decode(reader, reader.uint32());
+ break;
+ case 20:
+ message.ipAllocationPolicy = $root.google.container.v1.IPAllocationPolicy.decode(reader, reader.uint32());
+ break;
+ case 22:
+ message.masterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.decode(reader, reader.uint32());
+ break;
+ case 23:
+ message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.decode(reader, reader.uint32());
+ break;
+ case 24:
+ message.binaryAuthorization = $root.google.container.v1.BinaryAuthorization.decode(reader, reader.uint32());
+ break;
+ case 26:
+ message.autoscaling = $root.google.container.v1.ClusterAutoscaling.decode(reader, reader.uint32());
+ break;
+ case 27:
+ message.networkConfig = $root.google.container.v1.NetworkConfig.decode(reader, reader.uint32());
+ break;
+ case 30:
+ message.defaultMaxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.decode(reader, reader.uint32());
+ break;
+ case 33:
+ message.resourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.decode(reader, reader.uint32());
+ break;
+ case 34:
+ message.authenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.decode(reader, reader.uint32());
+ break;
+ case 37:
+ message.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.decode(reader, reader.uint32());
+ break;
+ case 38:
+ message.databaseEncryption = $root.google.container.v1.DatabaseEncryption.decode(reader, reader.uint32());
+ break;
+ case 39:
+ message.verticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.decode(reader, reader.uint32());
+ break;
+ case 40:
+ message.shieldedNodes = $root.google.container.v1.ShieldedNodes.decode(reader, reader.uint32());
+ break;
+ case 41:
+ message.releaseChannel = $root.google.container.v1.ReleaseChannel.decode(reader, reader.uint32());
+ break;
+ case 43:
+ message.workloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.decode(reader, reader.uint32());
+ break;
+ case 100:
+ message.selfLink = reader.string();
+ break;
+ case 101:
+ message.zone = reader.string();
+ break;
+ case 102:
+ message.endpoint = reader.string();
+ break;
+ case 103:
+ message.initialClusterVersion = reader.string();
+ break;
+ case 104:
+ message.currentMasterVersion = reader.string();
+ break;
+ case 105:
+ message.currentNodeVersion = reader.string();
+ break;
+ case 106:
+ message.createTime = reader.string();
+ break;
+ case 107:
+ message.status = reader.int32();
+ break;
+ case 108:
+ message.statusMessage = reader.string();
+ break;
+ case 109:
+ message.nodeIpv4CidrSize = reader.int32();
+ break;
+ case 110:
+ message.servicesIpv4Cidr = reader.string();
+ break;
+ case 111:
+ if (!(message.instanceGroupUrls && message.instanceGroupUrls.length))
+ message.instanceGroupUrls = [];
+ message.instanceGroupUrls.push(reader.string());
+ break;
+ case 112:
+ message.currentNodeCount = reader.int32();
+ break;
+ case 113:
+ message.expireTime = reader.string();
+ break;
+ case 114:
+ message.location = reader.string();
+ break;
+ case 115:
+ message.enableTpu = reader.bool();
+ break;
+ case 116:
+ message.tpuIpv4CidrBlock = reader.string();
+ break;
+ case 118:
+ if (!(message.conditions && message.conditions.length))
+ message.conditions = [];
+ message.conditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Cluster message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.Cluster
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.Cluster} Cluster
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Cluster.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Cluster message.
+ * @function verify
+ * @memberof google.container.v1.Cluster
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Cluster.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount"))
+ if (!$util.isInteger(message.initialNodeCount))
+ return "initialNodeCount: integer expected";
+ if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) {
+ var error = $root.google.container.v1.NodeConfig.verify(message.nodeConfig);
+ if (error)
+ return "nodeConfig." + error;
+ }
+ if (message.masterAuth != null && message.hasOwnProperty("masterAuth")) {
+ var error = $root.google.container.v1.MasterAuth.verify(message.masterAuth);
+ if (error)
+ return "masterAuth." + error;
+ }
+ if (message.loggingService != null && message.hasOwnProperty("loggingService"))
+ if (!$util.isString(message.loggingService))
+ return "loggingService: string expected";
+ if (message.monitoringService != null && message.hasOwnProperty("monitoringService"))
+ if (!$util.isString(message.monitoringService))
+ return "monitoringService: string expected";
+ if (message.network != null && message.hasOwnProperty("network"))
+ if (!$util.isString(message.network))
+ return "network: string expected";
+ if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr"))
+ if (!$util.isString(message.clusterIpv4Cidr))
+ return "clusterIpv4Cidr: string expected";
+ if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) {
+ var error = $root.google.container.v1.AddonsConfig.verify(message.addonsConfig);
+ if (error)
+ return "addonsConfig." + error;
+ }
+ if (message.subnetwork != null && message.hasOwnProperty("subnetwork"))
+ if (!$util.isString(message.subnetwork))
+ return "subnetwork: string expected";
+ if (message.nodePools != null && message.hasOwnProperty("nodePools")) {
+ if (!Array.isArray(message.nodePools))
+ return "nodePools: array expected";
+ for (var i = 0; i < message.nodePools.length; ++i) {
+ var error = $root.google.container.v1.NodePool.verify(message.nodePools[i]);
+ if (error)
+ return "nodePools." + error;
+ }
+ }
+ if (message.locations != null && message.hasOwnProperty("locations")) {
+ if (!Array.isArray(message.locations))
+ return "locations: array expected";
+ for (var i = 0; i < message.locations.length; ++i)
+ if (!$util.isString(message.locations[i]))
+ return "locations: string[] expected";
+ }
+ if (message.enableKubernetesAlpha != null && message.hasOwnProperty("enableKubernetesAlpha"))
+ if (typeof message.enableKubernetesAlpha !== "boolean")
+ return "enableKubernetesAlpha: boolean expected";
+ if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) {
+ if (!$util.isObject(message.resourceLabels))
+ return "resourceLabels: object expected";
+ var key = Object.keys(message.resourceLabels);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.resourceLabels[key[i]]))
+ return "resourceLabels: string{k:string} expected";
+ }
+ if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint"))
+ if (!$util.isString(message.labelFingerprint))
+ return "labelFingerprint: string expected";
+ if (message.legacyAbac != null && message.hasOwnProperty("legacyAbac")) {
+ var error = $root.google.container.v1.LegacyAbac.verify(message.legacyAbac);
+ if (error)
+ return "legacyAbac." + error;
+ }
+ if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) {
+ var error = $root.google.container.v1.NetworkPolicy.verify(message.networkPolicy);
+ if (error)
+ return "networkPolicy." + error;
+ }
+ if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) {
+ var error = $root.google.container.v1.IPAllocationPolicy.verify(message.ipAllocationPolicy);
+ if (error)
+ return "ipAllocationPolicy." + error;
+ }
+ if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig")) {
+ var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.verify(message.masterAuthorizedNetworksConfig);
+ if (error)
+ return "masterAuthorizedNetworksConfig." + error;
+ }
+ if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) {
+ var error = $root.google.container.v1.MaintenancePolicy.verify(message.maintenancePolicy);
+ if (error)
+ return "maintenancePolicy." + error;
+ }
+ if (message.binaryAuthorization != null && message.hasOwnProperty("binaryAuthorization")) {
+ var error = $root.google.container.v1.BinaryAuthorization.verify(message.binaryAuthorization);
+ if (error)
+ return "binaryAuthorization." + error;
+ }
+ if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) {
+ var error = $root.google.container.v1.ClusterAutoscaling.verify(message.autoscaling);
+ if (error)
+ return "autoscaling." + error;
+ }
+ if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) {
+ var error = $root.google.container.v1.NetworkConfig.verify(message.networkConfig);
+ if (error)
+ return "networkConfig." + error;
+ }
+ if (message.defaultMaxPodsConstraint != null && message.hasOwnProperty("defaultMaxPodsConstraint")) {
+ var error = $root.google.container.v1.MaxPodsConstraint.verify(message.defaultMaxPodsConstraint);
+ if (error)
+ return "defaultMaxPodsConstraint." + error;
+ }
+ if (message.resourceUsageExportConfig != null && message.hasOwnProperty("resourceUsageExportConfig")) {
+ var error = $root.google.container.v1.ResourceUsageExportConfig.verify(message.resourceUsageExportConfig);
+ if (error)
+ return "resourceUsageExportConfig." + error;
+ }
+ if (message.authenticatorGroupsConfig != null && message.hasOwnProperty("authenticatorGroupsConfig")) {
+ var error = $root.google.container.v1.AuthenticatorGroupsConfig.verify(message.authenticatorGroupsConfig);
+ if (error)
+ return "authenticatorGroupsConfig." + error;
+ }
+ if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) {
+ var error = $root.google.container.v1.PrivateClusterConfig.verify(message.privateClusterConfig);
+ if (error)
+ return "privateClusterConfig." + error;
+ }
+ if (message.databaseEncryption != null && message.hasOwnProperty("databaseEncryption")) {
+ var error = $root.google.container.v1.DatabaseEncryption.verify(message.databaseEncryption);
+ if (error)
+ return "databaseEncryption." + error;
+ }
+ if (message.verticalPodAutoscaling != null && message.hasOwnProperty("verticalPodAutoscaling")) {
+ var error = $root.google.container.v1.VerticalPodAutoscaling.verify(message.verticalPodAutoscaling);
+ if (error)
+ return "verticalPodAutoscaling." + error;
+ }
+ if (message.shieldedNodes != null && message.hasOwnProperty("shieldedNodes")) {
+ var error = $root.google.container.v1.ShieldedNodes.verify(message.shieldedNodes);
+ if (error)
+ return "shieldedNodes." + error;
+ }
+ if (message.releaseChannel != null && message.hasOwnProperty("releaseChannel")) {
+ var error = $root.google.container.v1.ReleaseChannel.verify(message.releaseChannel);
+ if (error)
+ return "releaseChannel." + error;
+ }
+ if (message.workloadIdentityConfig != null && message.hasOwnProperty("workloadIdentityConfig")) {
+ var error = $root.google.container.v1.WorkloadIdentityConfig.verify(message.workloadIdentityConfig);
+ if (error)
+ return "workloadIdentityConfig." + error;
+ }
+ if (message.selfLink != null && message.hasOwnProperty("selfLink"))
+ if (!$util.isString(message.selfLink))
+ return "selfLink: string expected";
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ if (!$util.isString(message.zone))
+ return "zone: string expected";
+ if (message.endpoint != null && message.hasOwnProperty("endpoint"))
+ if (!$util.isString(message.endpoint))
+ return "endpoint: string expected";
+ if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion"))
+ if (!$util.isString(message.initialClusterVersion))
+ return "initialClusterVersion: string expected";
+ if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion"))
+ if (!$util.isString(message.currentMasterVersion))
+ return "currentMasterVersion: string expected";
+ if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion"))
+ if (!$util.isString(message.currentNodeVersion))
+ return "currentNodeVersion: string expected";
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ if (!$util.isString(message.createTime))
+ return "createTime: string expected";
+ if (message.status != null && message.hasOwnProperty("status"))
+ switch (message.status) {
+ default:
+ return "status: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ break;
+ }
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ if (!$util.isString(message.statusMessage))
+ return "statusMessage: string expected";
+ if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize"))
+ if (!$util.isInteger(message.nodeIpv4CidrSize))
+ return "nodeIpv4CidrSize: integer expected";
+ if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr"))
+ if (!$util.isString(message.servicesIpv4Cidr))
+ return "servicesIpv4Cidr: string expected";
+ if (message.instanceGroupUrls != null && message.hasOwnProperty("instanceGroupUrls")) {
+ if (!Array.isArray(message.instanceGroupUrls))
+ return "instanceGroupUrls: array expected";
+ for (var i = 0; i < message.instanceGroupUrls.length; ++i)
+ if (!$util.isString(message.instanceGroupUrls[i]))
+ return "instanceGroupUrls: string[] expected";
+ }
+ if (message.currentNodeCount != null && message.hasOwnProperty("currentNodeCount"))
+ if (!$util.isInteger(message.currentNodeCount))
+ return "currentNodeCount: integer expected";
+ if (message.expireTime != null && message.hasOwnProperty("expireTime"))
+ if (!$util.isString(message.expireTime))
+ return "expireTime: string expected";
+ if (message.location != null && message.hasOwnProperty("location"))
+ if (!$util.isString(message.location))
+ return "location: string expected";
+ if (message.enableTpu != null && message.hasOwnProperty("enableTpu"))
+ if (typeof message.enableTpu !== "boolean")
+ return "enableTpu: boolean expected";
+ if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock"))
+ if (!$util.isString(message.tpuIpv4CidrBlock))
+ return "tpuIpv4CidrBlock: string expected";
+ if (message.conditions != null && message.hasOwnProperty("conditions")) {
+ if (!Array.isArray(message.conditions))
+ return "conditions: array expected";
+ for (var i = 0; i < message.conditions.length; ++i) {
+ var error = $root.google.container.v1.StatusCondition.verify(message.conditions[i]);
+ if (error)
+ return "conditions." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Cluster message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.Cluster
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.Cluster} Cluster
+ */
+ Cluster.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.Cluster)
+ return object;
+ var message = new $root.google.container.v1.Cluster();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.initialNodeCount != null)
+ message.initialNodeCount = object.initialNodeCount | 0;
+ if (object.nodeConfig != null) {
+ if (typeof object.nodeConfig !== "object")
+ throw TypeError(".google.container.v1.Cluster.nodeConfig: object expected");
+ message.nodeConfig = $root.google.container.v1.NodeConfig.fromObject(object.nodeConfig);
+ }
+ if (object.masterAuth != null) {
+ if (typeof object.masterAuth !== "object")
+ throw TypeError(".google.container.v1.Cluster.masterAuth: object expected");
+ message.masterAuth = $root.google.container.v1.MasterAuth.fromObject(object.masterAuth);
+ }
+ if (object.loggingService != null)
+ message.loggingService = String(object.loggingService);
+ if (object.monitoringService != null)
+ message.monitoringService = String(object.monitoringService);
+ if (object.network != null)
+ message.network = String(object.network);
+ if (object.clusterIpv4Cidr != null)
+ message.clusterIpv4Cidr = String(object.clusterIpv4Cidr);
+ if (object.addonsConfig != null) {
+ if (typeof object.addonsConfig !== "object")
+ throw TypeError(".google.container.v1.Cluster.addonsConfig: object expected");
+ message.addonsConfig = $root.google.container.v1.AddonsConfig.fromObject(object.addonsConfig);
+ }
+ if (object.subnetwork != null)
+ message.subnetwork = String(object.subnetwork);
+ if (object.nodePools) {
+ if (!Array.isArray(object.nodePools))
+ throw TypeError(".google.container.v1.Cluster.nodePools: array expected");
+ message.nodePools = [];
+ for (var i = 0; i < object.nodePools.length; ++i) {
+ if (typeof object.nodePools[i] !== "object")
+ throw TypeError(".google.container.v1.Cluster.nodePools: object expected");
+ message.nodePools[i] = $root.google.container.v1.NodePool.fromObject(object.nodePools[i]);
+ }
+ }
+ if (object.locations) {
+ if (!Array.isArray(object.locations))
+ throw TypeError(".google.container.v1.Cluster.locations: array expected");
+ message.locations = [];
+ for (var i = 0; i < object.locations.length; ++i)
+ message.locations[i] = String(object.locations[i]);
+ }
+ if (object.enableKubernetesAlpha != null)
+ message.enableKubernetesAlpha = Boolean(object.enableKubernetesAlpha);
+ if (object.resourceLabels) {
+ if (typeof object.resourceLabels !== "object")
+ throw TypeError(".google.container.v1.Cluster.resourceLabels: object expected");
+ message.resourceLabels = {};
+ for (var keys = Object.keys(object.resourceLabels), i = 0; i < keys.length; ++i)
+ message.resourceLabels[keys[i]] = String(object.resourceLabels[keys[i]]);
+ }
+ if (object.labelFingerprint != null)
+ message.labelFingerprint = String(object.labelFingerprint);
+ if (object.legacyAbac != null) {
+ if (typeof object.legacyAbac !== "object")
+ throw TypeError(".google.container.v1.Cluster.legacyAbac: object expected");
+ message.legacyAbac = $root.google.container.v1.LegacyAbac.fromObject(object.legacyAbac);
+ }
+ if (object.networkPolicy != null) {
+ if (typeof object.networkPolicy !== "object")
+ throw TypeError(".google.container.v1.Cluster.networkPolicy: object expected");
+ message.networkPolicy = $root.google.container.v1.NetworkPolicy.fromObject(object.networkPolicy);
+ }
+ if (object.ipAllocationPolicy != null) {
+ if (typeof object.ipAllocationPolicy !== "object")
+ throw TypeError(".google.container.v1.Cluster.ipAllocationPolicy: object expected");
+ message.ipAllocationPolicy = $root.google.container.v1.IPAllocationPolicy.fromObject(object.ipAllocationPolicy);
+ }
+ if (object.masterAuthorizedNetworksConfig != null) {
+ if (typeof object.masterAuthorizedNetworksConfig !== "object")
+ throw TypeError(".google.container.v1.Cluster.masterAuthorizedNetworksConfig: object expected");
+ message.masterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.fromObject(object.masterAuthorizedNetworksConfig);
+ }
+ if (object.maintenancePolicy != null) {
+ if (typeof object.maintenancePolicy !== "object")
+ throw TypeError(".google.container.v1.Cluster.maintenancePolicy: object expected");
+ message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.fromObject(object.maintenancePolicy);
+ }
+ if (object.binaryAuthorization != null) {
+ if (typeof object.binaryAuthorization !== "object")
+ throw TypeError(".google.container.v1.Cluster.binaryAuthorization: object expected");
+ message.binaryAuthorization = $root.google.container.v1.BinaryAuthorization.fromObject(object.binaryAuthorization);
+ }
+ if (object.autoscaling != null) {
+ if (typeof object.autoscaling !== "object")
+ throw TypeError(".google.container.v1.Cluster.autoscaling: object expected");
+ message.autoscaling = $root.google.container.v1.ClusterAutoscaling.fromObject(object.autoscaling);
+ }
+ if (object.networkConfig != null) {
+ if (typeof object.networkConfig !== "object")
+ throw TypeError(".google.container.v1.Cluster.networkConfig: object expected");
+ message.networkConfig = $root.google.container.v1.NetworkConfig.fromObject(object.networkConfig);
+ }
+ if (object.defaultMaxPodsConstraint != null) {
+ if (typeof object.defaultMaxPodsConstraint !== "object")
+ throw TypeError(".google.container.v1.Cluster.defaultMaxPodsConstraint: object expected");
+ message.defaultMaxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.fromObject(object.defaultMaxPodsConstraint);
+ }
+ if (object.resourceUsageExportConfig != null) {
+ if (typeof object.resourceUsageExportConfig !== "object")
+ throw TypeError(".google.container.v1.Cluster.resourceUsageExportConfig: object expected");
+ message.resourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.fromObject(object.resourceUsageExportConfig);
+ }
+ if (object.authenticatorGroupsConfig != null) {
+ if (typeof object.authenticatorGroupsConfig !== "object")
+ throw TypeError(".google.container.v1.Cluster.authenticatorGroupsConfig: object expected");
+ message.authenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.fromObject(object.authenticatorGroupsConfig);
+ }
+ if (object.privateClusterConfig != null) {
+ if (typeof object.privateClusterConfig !== "object")
+ throw TypeError(".google.container.v1.Cluster.privateClusterConfig: object expected");
+ message.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.fromObject(object.privateClusterConfig);
+ }
+ if (object.databaseEncryption != null) {
+ if (typeof object.databaseEncryption !== "object")
+ throw TypeError(".google.container.v1.Cluster.databaseEncryption: object expected");
+ message.databaseEncryption = $root.google.container.v1.DatabaseEncryption.fromObject(object.databaseEncryption);
+ }
+ if (object.verticalPodAutoscaling != null) {
+ if (typeof object.verticalPodAutoscaling !== "object")
+ throw TypeError(".google.container.v1.Cluster.verticalPodAutoscaling: object expected");
+ message.verticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.fromObject(object.verticalPodAutoscaling);
+ }
+ if (object.shieldedNodes != null) {
+ if (typeof object.shieldedNodes !== "object")
+ throw TypeError(".google.container.v1.Cluster.shieldedNodes: object expected");
+ message.shieldedNodes = $root.google.container.v1.ShieldedNodes.fromObject(object.shieldedNodes);
+ }
+ if (object.releaseChannel != null) {
+ if (typeof object.releaseChannel !== "object")
+ throw TypeError(".google.container.v1.Cluster.releaseChannel: object expected");
+ message.releaseChannel = $root.google.container.v1.ReleaseChannel.fromObject(object.releaseChannel);
+ }
+ if (object.workloadIdentityConfig != null) {
+ if (typeof object.workloadIdentityConfig !== "object")
+ throw TypeError(".google.container.v1.Cluster.workloadIdentityConfig: object expected");
+ message.workloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.fromObject(object.workloadIdentityConfig);
+ }
+ if (object.selfLink != null)
+ message.selfLink = String(object.selfLink);
+ if (object.zone != null)
+ message.zone = String(object.zone);
+ if (object.endpoint != null)
+ message.endpoint = String(object.endpoint);
+ if (object.initialClusterVersion != null)
+ message.initialClusterVersion = String(object.initialClusterVersion);
+ if (object.currentMasterVersion != null)
+ message.currentMasterVersion = String(object.currentMasterVersion);
+ if (object.currentNodeVersion != null)
+ message.currentNodeVersion = String(object.currentNodeVersion);
+ if (object.createTime != null)
+ message.createTime = String(object.createTime);
+ switch (object.status) {
+ case "STATUS_UNSPECIFIED":
+ case 0:
+ message.status = 0;
+ break;
+ case "PROVISIONING":
+ case 1:
+ message.status = 1;
+ break;
+ case "RUNNING":
+ case 2:
+ message.status = 2;
+ break;
+ case "RECONCILING":
+ case 3:
+ message.status = 3;
+ break;
+ case "STOPPING":
+ case 4:
+ message.status = 4;
+ break;
+ case "ERROR":
+ case 5:
+ message.status = 5;
+ break;
+ case "DEGRADED":
+ case 6:
+ message.status = 6;
+ break;
+ }
+ if (object.statusMessage != null)
+ message.statusMessage = String(object.statusMessage);
+ if (object.nodeIpv4CidrSize != null)
+ message.nodeIpv4CidrSize = object.nodeIpv4CidrSize | 0;
+ if (object.servicesIpv4Cidr != null)
+ message.servicesIpv4Cidr = String(object.servicesIpv4Cidr);
+ if (object.instanceGroupUrls) {
+ if (!Array.isArray(object.instanceGroupUrls))
+ throw TypeError(".google.container.v1.Cluster.instanceGroupUrls: array expected");
+ message.instanceGroupUrls = [];
+ for (var i = 0; i < object.instanceGroupUrls.length; ++i)
+ message.instanceGroupUrls[i] = String(object.instanceGroupUrls[i]);
+ }
+ if (object.currentNodeCount != null)
+ message.currentNodeCount = object.currentNodeCount | 0;
+ if (object.expireTime != null)
+ message.expireTime = String(object.expireTime);
+ if (object.location != null)
+ message.location = String(object.location);
+ if (object.enableTpu != null)
+ message.enableTpu = Boolean(object.enableTpu);
+ if (object.tpuIpv4CidrBlock != null)
+ message.tpuIpv4CidrBlock = String(object.tpuIpv4CidrBlock);
+ if (object.conditions) {
+ if (!Array.isArray(object.conditions))
+ throw TypeError(".google.container.v1.Cluster.conditions: array expected");
+ message.conditions = [];
+ for (var i = 0; i < object.conditions.length; ++i) {
+ if (typeof object.conditions[i] !== "object")
+ throw TypeError(".google.container.v1.Cluster.conditions: object expected");
+ message.conditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.conditions[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Cluster message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.Cluster
+ * @static
+ * @param {google.container.v1.Cluster} message Cluster
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Cluster.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.nodePools = [];
+ object.locations = [];
+ object.instanceGroupUrls = [];
+ object.conditions = [];
+ }
+ if (options.objects || options.defaults)
+ object.resourceLabels = {};
+ if (options.defaults) {
+ object.name = "";
+ object.description = "";
+ object.initialNodeCount = 0;
+ object.nodeConfig = null;
+ object.masterAuth = null;
+ object.loggingService = "";
+ object.monitoringService = "";
+ object.network = "";
+ object.clusterIpv4Cidr = "";
+ object.addonsConfig = null;
+ object.subnetwork = "";
+ object.enableKubernetesAlpha = false;
+ object.labelFingerprint = "";
+ object.legacyAbac = null;
+ object.networkPolicy = null;
+ object.ipAllocationPolicy = null;
+ object.masterAuthorizedNetworksConfig = null;
+ object.maintenancePolicy = null;
+ object.binaryAuthorization = null;
+ object.autoscaling = null;
+ object.networkConfig = null;
+ object.defaultMaxPodsConstraint = null;
+ object.resourceUsageExportConfig = null;
+ object.authenticatorGroupsConfig = null;
+ object.privateClusterConfig = null;
+ object.databaseEncryption = null;
+ object.verticalPodAutoscaling = null;
+ object.shieldedNodes = null;
+ object.releaseChannel = null;
+ object.workloadIdentityConfig = null;
+ object.selfLink = "";
+ object.zone = "";
+ object.endpoint = "";
+ object.initialClusterVersion = "";
+ object.currentMasterVersion = "";
+ object.currentNodeVersion = "";
+ object.createTime = "";
+ object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0;
+ object.statusMessage = "";
+ object.nodeIpv4CidrSize = 0;
+ object.servicesIpv4Cidr = "";
+ object.currentNodeCount = 0;
+ object.expireTime = "";
+ object.location = "";
+ object.enableTpu = false;
+ object.tpuIpv4CidrBlock = "";
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount"))
+ object.initialNodeCount = message.initialNodeCount;
+ if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig"))
+ object.nodeConfig = $root.google.container.v1.NodeConfig.toObject(message.nodeConfig, options);
+ if (message.masterAuth != null && message.hasOwnProperty("masterAuth"))
+ object.masterAuth = $root.google.container.v1.MasterAuth.toObject(message.masterAuth, options);
+ if (message.loggingService != null && message.hasOwnProperty("loggingService"))
+ object.loggingService = message.loggingService;
+ if (message.monitoringService != null && message.hasOwnProperty("monitoringService"))
+ object.monitoringService = message.monitoringService;
+ if (message.network != null && message.hasOwnProperty("network"))
+ object.network = message.network;
+ if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr"))
+ object.clusterIpv4Cidr = message.clusterIpv4Cidr;
+ if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig"))
+ object.addonsConfig = $root.google.container.v1.AddonsConfig.toObject(message.addonsConfig, options);
+ if (message.subnetwork != null && message.hasOwnProperty("subnetwork"))
+ object.subnetwork = message.subnetwork;
+ if (message.nodePools && message.nodePools.length) {
+ object.nodePools = [];
+ for (var j = 0; j < message.nodePools.length; ++j)
+ object.nodePools[j] = $root.google.container.v1.NodePool.toObject(message.nodePools[j], options);
+ }
+ if (message.locations && message.locations.length) {
+ object.locations = [];
+ for (var j = 0; j < message.locations.length; ++j)
+ object.locations[j] = message.locations[j];
+ }
+ if (message.enableKubernetesAlpha != null && message.hasOwnProperty("enableKubernetesAlpha"))
+ object.enableKubernetesAlpha = message.enableKubernetesAlpha;
+ var keys2;
+ if (message.resourceLabels && (keys2 = Object.keys(message.resourceLabels)).length) {
+ object.resourceLabels = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.resourceLabels[keys2[j]] = message.resourceLabels[keys2[j]];
+ }
+ if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint"))
+ object.labelFingerprint = message.labelFingerprint;
+ if (message.legacyAbac != null && message.hasOwnProperty("legacyAbac"))
+ object.legacyAbac = $root.google.container.v1.LegacyAbac.toObject(message.legacyAbac, options);
+ if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy"))
+ object.networkPolicy = $root.google.container.v1.NetworkPolicy.toObject(message.networkPolicy, options);
+ if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy"))
+ object.ipAllocationPolicy = $root.google.container.v1.IPAllocationPolicy.toObject(message.ipAllocationPolicy, options);
+ if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig"))
+ object.masterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.toObject(message.masterAuthorizedNetworksConfig, options);
+ if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy"))
+ object.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.toObject(message.maintenancePolicy, options);
+ if (message.binaryAuthorization != null && message.hasOwnProperty("binaryAuthorization"))
+ object.binaryAuthorization = $root.google.container.v1.BinaryAuthorization.toObject(message.binaryAuthorization, options);
+ if (message.autoscaling != null && message.hasOwnProperty("autoscaling"))
+ object.autoscaling = $root.google.container.v1.ClusterAutoscaling.toObject(message.autoscaling, options);
+ if (message.networkConfig != null && message.hasOwnProperty("networkConfig"))
+ object.networkConfig = $root.google.container.v1.NetworkConfig.toObject(message.networkConfig, options);
+ if (message.defaultMaxPodsConstraint != null && message.hasOwnProperty("defaultMaxPodsConstraint"))
+ object.defaultMaxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.toObject(message.defaultMaxPodsConstraint, options);
+ if (message.resourceUsageExportConfig != null && message.hasOwnProperty("resourceUsageExportConfig"))
+ object.resourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.toObject(message.resourceUsageExportConfig, options);
+ if (message.authenticatorGroupsConfig != null && message.hasOwnProperty("authenticatorGroupsConfig"))
+ object.authenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.toObject(message.authenticatorGroupsConfig, options);
+ if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig"))
+ object.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.toObject(message.privateClusterConfig, options);
+ if (message.databaseEncryption != null && message.hasOwnProperty("databaseEncryption"))
+ object.databaseEncryption = $root.google.container.v1.DatabaseEncryption.toObject(message.databaseEncryption, options);
+ if (message.verticalPodAutoscaling != null && message.hasOwnProperty("verticalPodAutoscaling"))
+ object.verticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.toObject(message.verticalPodAutoscaling, options);
+ if (message.shieldedNodes != null && message.hasOwnProperty("shieldedNodes"))
+ object.shieldedNodes = $root.google.container.v1.ShieldedNodes.toObject(message.shieldedNodes, options);
+ if (message.releaseChannel != null && message.hasOwnProperty("releaseChannel"))
+ object.releaseChannel = $root.google.container.v1.ReleaseChannel.toObject(message.releaseChannel, options);
+ if (message.workloadIdentityConfig != null && message.hasOwnProperty("workloadIdentityConfig"))
+ object.workloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.toObject(message.workloadIdentityConfig, options);
+ if (message.selfLink != null && message.hasOwnProperty("selfLink"))
+ object.selfLink = message.selfLink;
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ object.zone = message.zone;
+ if (message.endpoint != null && message.hasOwnProperty("endpoint"))
+ object.endpoint = message.endpoint;
+ if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion"))
+ object.initialClusterVersion = message.initialClusterVersion;
+ if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion"))
+ object.currentMasterVersion = message.currentMasterVersion;
+ if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion"))
+ object.currentNodeVersion = message.currentNodeVersion;
+ if (message.createTime != null && message.hasOwnProperty("createTime"))
+ object.createTime = message.createTime;
+ if (message.status != null && message.hasOwnProperty("status"))
+ object.status = options.enums === String ? $root.google.container.v1.Cluster.Status[message.status] : message.status;
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ object.statusMessage = message.statusMessage;
+ if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize"))
+ object.nodeIpv4CidrSize = message.nodeIpv4CidrSize;
+ if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr"))
+ object.servicesIpv4Cidr = message.servicesIpv4Cidr;
+ if (message.instanceGroupUrls && message.instanceGroupUrls.length) {
+ object.instanceGroupUrls = [];
+ for (var j = 0; j < message.instanceGroupUrls.length; ++j)
+ object.instanceGroupUrls[j] = message.instanceGroupUrls[j];
+ }
+ if (message.currentNodeCount != null && message.hasOwnProperty("currentNodeCount"))
+ object.currentNodeCount = message.currentNodeCount;
+ if (message.expireTime != null && message.hasOwnProperty("expireTime"))
+ object.expireTime = message.expireTime;
+ if (message.location != null && message.hasOwnProperty("location"))
+ object.location = message.location;
+ if (message.enableTpu != null && message.hasOwnProperty("enableTpu"))
+ object.enableTpu = message.enableTpu;
+ if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock"))
+ object.tpuIpv4CidrBlock = message.tpuIpv4CidrBlock;
+ if (message.conditions && message.conditions.length) {
+ object.conditions = [];
+ for (var j = 0; j < message.conditions.length; ++j)
+ object.conditions[j] = $root.google.container.v1.StatusCondition.toObject(message.conditions[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Cluster to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.Cluster
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Cluster.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Status enum.
+ * @name google.container.v1.Cluster.Status
+ * @enum {number}
+ * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value
+ * @property {number} PROVISIONING=1 PROVISIONING value
+ * @property {number} RUNNING=2 RUNNING value
+ * @property {number} RECONCILING=3 RECONCILING value
+ * @property {number} STOPPING=4 STOPPING value
+ * @property {number} ERROR=5 ERROR value
+ * @property {number} DEGRADED=6 DEGRADED value
+ */
+ Cluster.Status = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATUS_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PROVISIONING"] = 1;
+ values[valuesById[2] = "RUNNING"] = 2;
+ values[valuesById[3] = "RECONCILING"] = 3;
+ values[valuesById[4] = "STOPPING"] = 4;
+ values[valuesById[5] = "ERROR"] = 5;
+ values[valuesById[6] = "DEGRADED"] = 6;
+ return values;
+ })();
+
+ return Cluster;
+ })();
+
+ v1.ClusterUpdate = (function() {
+
+ /**
+ * Properties of a ClusterUpdate.
+ * @memberof google.container.v1
+ * @interface IClusterUpdate
+ * @property {string|null} [desiredNodeVersion] ClusterUpdate desiredNodeVersion
+ * @property {string|null} [desiredMonitoringService] ClusterUpdate desiredMonitoringService
+ * @property {google.container.v1.IAddonsConfig|null} [desiredAddonsConfig] ClusterUpdate desiredAddonsConfig
+ * @property {string|null} [desiredNodePoolId] ClusterUpdate desiredNodePoolId
+ * @property {string|null} [desiredImageType] ClusterUpdate desiredImageType
+ * @property {google.container.v1.IDatabaseEncryption|null} [desiredDatabaseEncryption] ClusterUpdate desiredDatabaseEncryption
+ * @property {google.container.v1.IWorkloadIdentityConfig|null} [desiredWorkloadIdentityConfig] ClusterUpdate desiredWorkloadIdentityConfig
+ * @property {google.container.v1.IShieldedNodes|null} [desiredShieldedNodes] ClusterUpdate desiredShieldedNodes
+ * @property {google.container.v1.INodePoolAutoscaling|null} [desiredNodePoolAutoscaling] ClusterUpdate desiredNodePoolAutoscaling
+ * @property {Array.|null} [desiredLocations] ClusterUpdate desiredLocations
+ * @property {google.container.v1.IMasterAuthorizedNetworksConfig|null} [desiredMasterAuthorizedNetworksConfig] ClusterUpdate desiredMasterAuthorizedNetworksConfig
+ * @property {google.container.v1.IClusterAutoscaling|null} [desiredClusterAutoscaling] ClusterUpdate desiredClusterAutoscaling
+ * @property {google.container.v1.IBinaryAuthorization|null} [desiredBinaryAuthorization] ClusterUpdate desiredBinaryAuthorization
+ * @property {string|null} [desiredLoggingService] ClusterUpdate desiredLoggingService
+ * @property {google.container.v1.IResourceUsageExportConfig|null} [desiredResourceUsageExportConfig] ClusterUpdate desiredResourceUsageExportConfig
+ * @property {google.container.v1.IVerticalPodAutoscaling|null} [desiredVerticalPodAutoscaling] ClusterUpdate desiredVerticalPodAutoscaling
+ * @property {google.container.v1.IPrivateClusterConfig|null} [desiredPrivateClusterConfig] ClusterUpdate desiredPrivateClusterConfig
+ * @property {google.container.v1.IIntraNodeVisibilityConfig|null} [desiredIntraNodeVisibilityConfig] ClusterUpdate desiredIntraNodeVisibilityConfig
+ * @property {google.container.v1.IDefaultSnatStatus|null} [desiredDefaultSnatStatus] ClusterUpdate desiredDefaultSnatStatus
+ * @property {google.container.v1.IReleaseChannel|null} [desiredReleaseChannel] ClusterUpdate desiredReleaseChannel
+ * @property {string|null} [desiredMasterVersion] ClusterUpdate desiredMasterVersion
+ */
+
+ /**
+ * Constructs a new ClusterUpdate.
+ * @memberof google.container.v1
+ * @classdesc Represents a ClusterUpdate.
+ * @implements IClusterUpdate
+ * @constructor
+ * @param {google.container.v1.IClusterUpdate=} [properties] Properties to set
+ */
+ function ClusterUpdate(properties) {
+ this.desiredLocations = [];
+ 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]];
+ }
+
+ /**
+ * ClusterUpdate desiredNodeVersion.
+ * @member {string} desiredNodeVersion
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredNodeVersion = "";
+
+ /**
+ * ClusterUpdate desiredMonitoringService.
+ * @member {string} desiredMonitoringService
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredMonitoringService = "";
+
+ /**
+ * ClusterUpdate desiredAddonsConfig.
+ * @member {google.container.v1.IAddonsConfig|null|undefined} desiredAddonsConfig
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredAddonsConfig = null;
+
+ /**
+ * ClusterUpdate desiredNodePoolId.
+ * @member {string} desiredNodePoolId
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredNodePoolId = "";
+
+ /**
+ * ClusterUpdate desiredImageType.
+ * @member {string} desiredImageType
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredImageType = "";
+
+ /**
+ * ClusterUpdate desiredDatabaseEncryption.
+ * @member {google.container.v1.IDatabaseEncryption|null|undefined} desiredDatabaseEncryption
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredDatabaseEncryption = null;
+
+ /**
+ * ClusterUpdate desiredWorkloadIdentityConfig.
+ * @member {google.container.v1.IWorkloadIdentityConfig|null|undefined} desiredWorkloadIdentityConfig
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredWorkloadIdentityConfig = null;
+
+ /**
+ * ClusterUpdate desiredShieldedNodes.
+ * @member {google.container.v1.IShieldedNodes|null|undefined} desiredShieldedNodes
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredShieldedNodes = null;
+
+ /**
+ * ClusterUpdate desiredNodePoolAutoscaling.
+ * @member {google.container.v1.INodePoolAutoscaling|null|undefined} desiredNodePoolAutoscaling
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredNodePoolAutoscaling = null;
+
+ /**
+ * ClusterUpdate desiredLocations.
+ * @member {Array.} desiredLocations
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredLocations = $util.emptyArray;
+
+ /**
+ * ClusterUpdate desiredMasterAuthorizedNetworksConfig.
+ * @member {google.container.v1.IMasterAuthorizedNetworksConfig|null|undefined} desiredMasterAuthorizedNetworksConfig
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredMasterAuthorizedNetworksConfig = null;
+
+ /**
+ * ClusterUpdate desiredClusterAutoscaling.
+ * @member {google.container.v1.IClusterAutoscaling|null|undefined} desiredClusterAutoscaling
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredClusterAutoscaling = null;
+
+ /**
+ * ClusterUpdate desiredBinaryAuthorization.
+ * @member {google.container.v1.IBinaryAuthorization|null|undefined} desiredBinaryAuthorization
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredBinaryAuthorization = null;
+
+ /**
+ * ClusterUpdate desiredLoggingService.
+ * @member {string} desiredLoggingService
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredLoggingService = "";
+
+ /**
+ * ClusterUpdate desiredResourceUsageExportConfig.
+ * @member {google.container.v1.IResourceUsageExportConfig|null|undefined} desiredResourceUsageExportConfig
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredResourceUsageExportConfig = null;
+
+ /**
+ * ClusterUpdate desiredVerticalPodAutoscaling.
+ * @member {google.container.v1.IVerticalPodAutoscaling|null|undefined} desiredVerticalPodAutoscaling
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredVerticalPodAutoscaling = null;
+
+ /**
+ * ClusterUpdate desiredPrivateClusterConfig.
+ * @member {google.container.v1.IPrivateClusterConfig|null|undefined} desiredPrivateClusterConfig
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredPrivateClusterConfig = null;
+
+ /**
+ * ClusterUpdate desiredIntraNodeVisibilityConfig.
+ * @member {google.container.v1.IIntraNodeVisibilityConfig|null|undefined} desiredIntraNodeVisibilityConfig
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredIntraNodeVisibilityConfig = null;
+
+ /**
+ * ClusterUpdate desiredDefaultSnatStatus.
+ * @member {google.container.v1.IDefaultSnatStatus|null|undefined} desiredDefaultSnatStatus
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredDefaultSnatStatus = null;
+
+ /**
+ * ClusterUpdate desiredReleaseChannel.
+ * @member {google.container.v1.IReleaseChannel|null|undefined} desiredReleaseChannel
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredReleaseChannel = null;
+
+ /**
+ * ClusterUpdate desiredMasterVersion.
+ * @member {string} desiredMasterVersion
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ */
+ ClusterUpdate.prototype.desiredMasterVersion = "";
+
+ /**
+ * Creates a new ClusterUpdate instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.ClusterUpdate
+ * @static
+ * @param {google.container.v1.IClusterUpdate=} [properties] Properties to set
+ * @returns {google.container.v1.ClusterUpdate} ClusterUpdate instance
+ */
+ ClusterUpdate.create = function create(properties) {
+ return new ClusterUpdate(properties);
+ };
+
+ /**
+ * Encodes the specified ClusterUpdate message. Does not implicitly {@link google.container.v1.ClusterUpdate.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.ClusterUpdate
+ * @static
+ * @param {google.container.v1.IClusterUpdate} message ClusterUpdate message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ClusterUpdate.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.desiredNodeVersion != null && Object.hasOwnProperty.call(message, "desiredNodeVersion"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.desiredNodeVersion);
+ if (message.desiredMonitoringService != null && Object.hasOwnProperty.call(message, "desiredMonitoringService"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.desiredMonitoringService);
+ if (message.desiredAddonsConfig != null && Object.hasOwnProperty.call(message, "desiredAddonsConfig"))
+ $root.google.container.v1.AddonsConfig.encode(message.desiredAddonsConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.desiredNodePoolId != null && Object.hasOwnProperty.call(message, "desiredNodePoolId"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.desiredNodePoolId);
+ if (message.desiredImageType != null && Object.hasOwnProperty.call(message, "desiredImageType"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.desiredImageType);
+ if (message.desiredNodePoolAutoscaling != null && Object.hasOwnProperty.call(message, "desiredNodePoolAutoscaling"))
+ $root.google.container.v1.NodePoolAutoscaling.encode(message.desiredNodePoolAutoscaling, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.desiredLocations != null && message.desiredLocations.length)
+ for (var i = 0; i < message.desiredLocations.length; ++i)
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.desiredLocations[i]);
+ if (message.desiredMasterAuthorizedNetworksConfig != null && Object.hasOwnProperty.call(message, "desiredMasterAuthorizedNetworksConfig"))
+ $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.desiredMasterAuthorizedNetworksConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
+ if (message.desiredClusterAutoscaling != null && Object.hasOwnProperty.call(message, "desiredClusterAutoscaling"))
+ $root.google.container.v1.ClusterAutoscaling.encode(message.desiredClusterAutoscaling, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
+ if (message.desiredBinaryAuthorization != null && Object.hasOwnProperty.call(message, "desiredBinaryAuthorization"))
+ $root.google.container.v1.BinaryAuthorization.encode(message.desiredBinaryAuthorization, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
+ if (message.desiredLoggingService != null && Object.hasOwnProperty.call(message, "desiredLoggingService"))
+ writer.uint32(/* id 19, wireType 2 =*/154).string(message.desiredLoggingService);
+ if (message.desiredResourceUsageExportConfig != null && Object.hasOwnProperty.call(message, "desiredResourceUsageExportConfig"))
+ $root.google.container.v1.ResourceUsageExportConfig.encode(message.desiredResourceUsageExportConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
+ if (message.desiredVerticalPodAutoscaling != null && Object.hasOwnProperty.call(message, "desiredVerticalPodAutoscaling"))
+ $root.google.container.v1.VerticalPodAutoscaling.encode(message.desiredVerticalPodAutoscaling, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
+ if (message.desiredPrivateClusterConfig != null && Object.hasOwnProperty.call(message, "desiredPrivateClusterConfig"))
+ $root.google.container.v1.PrivateClusterConfig.encode(message.desiredPrivateClusterConfig, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
+ if (message.desiredIntraNodeVisibilityConfig != null && Object.hasOwnProperty.call(message, "desiredIntraNodeVisibilityConfig"))
+ $root.google.container.v1.IntraNodeVisibilityConfig.encode(message.desiredIntraNodeVisibilityConfig, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
+ if (message.desiredDefaultSnatStatus != null && Object.hasOwnProperty.call(message, "desiredDefaultSnatStatus"))
+ $root.google.container.v1.DefaultSnatStatus.encode(message.desiredDefaultSnatStatus, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
+ if (message.desiredReleaseChannel != null && Object.hasOwnProperty.call(message, "desiredReleaseChannel"))
+ $root.google.container.v1.ReleaseChannel.encode(message.desiredReleaseChannel, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim();
+ if (message.desiredDatabaseEncryption != null && Object.hasOwnProperty.call(message, "desiredDatabaseEncryption"))
+ $root.google.container.v1.DatabaseEncryption.encode(message.desiredDatabaseEncryption, writer.uint32(/* id 46, wireType 2 =*/370).fork()).ldelim();
+ if (message.desiredWorkloadIdentityConfig != null && Object.hasOwnProperty.call(message, "desiredWorkloadIdentityConfig"))
+ $root.google.container.v1.WorkloadIdentityConfig.encode(message.desiredWorkloadIdentityConfig, writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim();
+ if (message.desiredShieldedNodes != null && Object.hasOwnProperty.call(message, "desiredShieldedNodes"))
+ $root.google.container.v1.ShieldedNodes.encode(message.desiredShieldedNodes, writer.uint32(/* id 48, wireType 2 =*/386).fork()).ldelim();
+ if (message.desiredMasterVersion != null && Object.hasOwnProperty.call(message, "desiredMasterVersion"))
+ writer.uint32(/* id 100, wireType 2 =*/802).string(message.desiredMasterVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ClusterUpdate message, length delimited. Does not implicitly {@link google.container.v1.ClusterUpdate.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.ClusterUpdate
+ * @static
+ * @param {google.container.v1.IClusterUpdate} message ClusterUpdate message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ClusterUpdate.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ClusterUpdate message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.ClusterUpdate
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.ClusterUpdate} ClusterUpdate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ClusterUpdate.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.ClusterUpdate();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 4:
+ message.desiredNodeVersion = reader.string();
+ break;
+ case 5:
+ message.desiredMonitoringService = reader.string();
+ break;
+ case 6:
+ message.desiredAddonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32());
+ break;
+ case 7:
+ message.desiredNodePoolId = reader.string();
+ break;
+ case 8:
+ message.desiredImageType = reader.string();
+ break;
+ case 46:
+ message.desiredDatabaseEncryption = $root.google.container.v1.DatabaseEncryption.decode(reader, reader.uint32());
+ break;
+ case 47:
+ message.desiredWorkloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.decode(reader, reader.uint32());
+ break;
+ case 48:
+ message.desiredShieldedNodes = $root.google.container.v1.ShieldedNodes.decode(reader, reader.uint32());
+ break;
+ case 9:
+ message.desiredNodePoolAutoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32());
+ break;
+ case 10:
+ if (!(message.desiredLocations && message.desiredLocations.length))
+ message.desiredLocations = [];
+ message.desiredLocations.push(reader.string());
+ break;
+ case 12:
+ message.desiredMasterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.decode(reader, reader.uint32());
+ break;
+ case 15:
+ message.desiredClusterAutoscaling = $root.google.container.v1.ClusterAutoscaling.decode(reader, reader.uint32());
+ break;
+ case 16:
+ message.desiredBinaryAuthorization = $root.google.container.v1.BinaryAuthorization.decode(reader, reader.uint32());
+ break;
+ case 19:
+ message.desiredLoggingService = reader.string();
+ break;
+ case 21:
+ message.desiredResourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.decode(reader, reader.uint32());
+ break;
+ case 22:
+ message.desiredVerticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.decode(reader, reader.uint32());
+ break;
+ case 25:
+ message.desiredPrivateClusterConfig = $root.google.container.v1.PrivateClusterConfig.decode(reader, reader.uint32());
+ break;
+ case 26:
+ message.desiredIntraNodeVisibilityConfig = $root.google.container.v1.IntraNodeVisibilityConfig.decode(reader, reader.uint32());
+ break;
+ case 28:
+ message.desiredDefaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.decode(reader, reader.uint32());
+ break;
+ case 31:
+ message.desiredReleaseChannel = $root.google.container.v1.ReleaseChannel.decode(reader, reader.uint32());
+ break;
+ case 100:
+ message.desiredMasterVersion = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ClusterUpdate message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.ClusterUpdate
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.ClusterUpdate} ClusterUpdate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ClusterUpdate.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ClusterUpdate message.
+ * @function verify
+ * @memberof google.container.v1.ClusterUpdate
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ClusterUpdate.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion"))
+ if (!$util.isString(message.desiredNodeVersion))
+ return "desiredNodeVersion: string expected";
+ if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService"))
+ if (!$util.isString(message.desiredMonitoringService))
+ return "desiredMonitoringService: string expected";
+ if (message.desiredAddonsConfig != null && message.hasOwnProperty("desiredAddonsConfig")) {
+ var error = $root.google.container.v1.AddonsConfig.verify(message.desiredAddonsConfig);
+ if (error)
+ return "desiredAddonsConfig." + error;
+ }
+ if (message.desiredNodePoolId != null && message.hasOwnProperty("desiredNodePoolId"))
+ if (!$util.isString(message.desiredNodePoolId))
+ return "desiredNodePoolId: string expected";
+ if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType"))
+ if (!$util.isString(message.desiredImageType))
+ return "desiredImageType: string expected";
+ if (message.desiredDatabaseEncryption != null && message.hasOwnProperty("desiredDatabaseEncryption")) {
+ var error = $root.google.container.v1.DatabaseEncryption.verify(message.desiredDatabaseEncryption);
+ if (error)
+ return "desiredDatabaseEncryption." + error;
+ }
+ if (message.desiredWorkloadIdentityConfig != null && message.hasOwnProperty("desiredWorkloadIdentityConfig")) {
+ var error = $root.google.container.v1.WorkloadIdentityConfig.verify(message.desiredWorkloadIdentityConfig);
+ if (error)
+ return "desiredWorkloadIdentityConfig." + error;
+ }
+ if (message.desiredShieldedNodes != null && message.hasOwnProperty("desiredShieldedNodes")) {
+ var error = $root.google.container.v1.ShieldedNodes.verify(message.desiredShieldedNodes);
+ if (error)
+ return "desiredShieldedNodes." + error;
+ }
+ if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("desiredNodePoolAutoscaling")) {
+ var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.desiredNodePoolAutoscaling);
+ if (error)
+ return "desiredNodePoolAutoscaling." + error;
+ }
+ if (message.desiredLocations != null && message.hasOwnProperty("desiredLocations")) {
+ if (!Array.isArray(message.desiredLocations))
+ return "desiredLocations: array expected";
+ for (var i = 0; i < message.desiredLocations.length; ++i)
+ if (!$util.isString(message.desiredLocations[i]))
+ return "desiredLocations: string[] expected";
+ }
+ if (message.desiredMasterAuthorizedNetworksConfig != null && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig")) {
+ var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.verify(message.desiredMasterAuthorizedNetworksConfig);
+ if (error)
+ return "desiredMasterAuthorizedNetworksConfig." + error;
+ }
+ if (message.desiredClusterAutoscaling != null && message.hasOwnProperty("desiredClusterAutoscaling")) {
+ var error = $root.google.container.v1.ClusterAutoscaling.verify(message.desiredClusterAutoscaling);
+ if (error)
+ return "desiredClusterAutoscaling." + error;
+ }
+ if (message.desiredBinaryAuthorization != null && message.hasOwnProperty("desiredBinaryAuthorization")) {
+ var error = $root.google.container.v1.BinaryAuthorization.verify(message.desiredBinaryAuthorization);
+ if (error)
+ return "desiredBinaryAuthorization." + error;
+ }
+ if (message.desiredLoggingService != null && message.hasOwnProperty("desiredLoggingService"))
+ if (!$util.isString(message.desiredLoggingService))
+ return "desiredLoggingService: string expected";
+ if (message.desiredResourceUsageExportConfig != null && message.hasOwnProperty("desiredResourceUsageExportConfig")) {
+ var error = $root.google.container.v1.ResourceUsageExportConfig.verify(message.desiredResourceUsageExportConfig);
+ if (error)
+ return "desiredResourceUsageExportConfig." + error;
+ }
+ if (message.desiredVerticalPodAutoscaling != null && message.hasOwnProperty("desiredVerticalPodAutoscaling")) {
+ var error = $root.google.container.v1.VerticalPodAutoscaling.verify(message.desiredVerticalPodAutoscaling);
+ if (error)
+ return "desiredVerticalPodAutoscaling." + error;
+ }
+ if (message.desiredPrivateClusterConfig != null && message.hasOwnProperty("desiredPrivateClusterConfig")) {
+ var error = $root.google.container.v1.PrivateClusterConfig.verify(message.desiredPrivateClusterConfig);
+ if (error)
+ return "desiredPrivateClusterConfig." + error;
+ }
+ if (message.desiredIntraNodeVisibilityConfig != null && message.hasOwnProperty("desiredIntraNodeVisibilityConfig")) {
+ var error = $root.google.container.v1.IntraNodeVisibilityConfig.verify(message.desiredIntraNodeVisibilityConfig);
+ if (error)
+ return "desiredIntraNodeVisibilityConfig." + error;
+ }
+ if (message.desiredDefaultSnatStatus != null && message.hasOwnProperty("desiredDefaultSnatStatus")) {
+ var error = $root.google.container.v1.DefaultSnatStatus.verify(message.desiredDefaultSnatStatus);
+ if (error)
+ return "desiredDefaultSnatStatus." + error;
+ }
+ if (message.desiredReleaseChannel != null && message.hasOwnProperty("desiredReleaseChannel")) {
+ var error = $root.google.container.v1.ReleaseChannel.verify(message.desiredReleaseChannel);
+ if (error)
+ return "desiredReleaseChannel." + error;
+ }
+ if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion"))
+ if (!$util.isString(message.desiredMasterVersion))
+ return "desiredMasterVersion: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ClusterUpdate message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.ClusterUpdate
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.ClusterUpdate} ClusterUpdate
+ */
+ ClusterUpdate.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.ClusterUpdate)
+ return object;
+ var message = new $root.google.container.v1.ClusterUpdate();
+ if (object.desiredNodeVersion != null)
+ message.desiredNodeVersion = String(object.desiredNodeVersion);
+ if (object.desiredMonitoringService != null)
+ message.desiredMonitoringService = String(object.desiredMonitoringService);
+ if (object.desiredAddonsConfig != null) {
+ if (typeof object.desiredAddonsConfig !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredAddonsConfig: object expected");
+ message.desiredAddonsConfig = $root.google.container.v1.AddonsConfig.fromObject(object.desiredAddonsConfig);
+ }
+ if (object.desiredNodePoolId != null)
+ message.desiredNodePoolId = String(object.desiredNodePoolId);
+ if (object.desiredImageType != null)
+ message.desiredImageType = String(object.desiredImageType);
+ if (object.desiredDatabaseEncryption != null) {
+ if (typeof object.desiredDatabaseEncryption !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredDatabaseEncryption: object expected");
+ message.desiredDatabaseEncryption = $root.google.container.v1.DatabaseEncryption.fromObject(object.desiredDatabaseEncryption);
+ }
+ if (object.desiredWorkloadIdentityConfig != null) {
+ if (typeof object.desiredWorkloadIdentityConfig !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredWorkloadIdentityConfig: object expected");
+ message.desiredWorkloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.fromObject(object.desiredWorkloadIdentityConfig);
+ }
+ if (object.desiredShieldedNodes != null) {
+ if (typeof object.desiredShieldedNodes !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredShieldedNodes: object expected");
+ message.desiredShieldedNodes = $root.google.container.v1.ShieldedNodes.fromObject(object.desiredShieldedNodes);
+ }
+ if (object.desiredNodePoolAutoscaling != null) {
+ if (typeof object.desiredNodePoolAutoscaling !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolAutoscaling: object expected");
+ message.desiredNodePoolAutoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.desiredNodePoolAutoscaling);
+ }
+ if (object.desiredLocations) {
+ if (!Array.isArray(object.desiredLocations))
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredLocations: array expected");
+ message.desiredLocations = [];
+ for (var i = 0; i < object.desiredLocations.length; ++i)
+ message.desiredLocations[i] = String(object.desiredLocations[i]);
+ }
+ if (object.desiredMasterAuthorizedNetworksConfig != null) {
+ if (typeof object.desiredMasterAuthorizedNetworksConfig !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredMasterAuthorizedNetworksConfig: object expected");
+ message.desiredMasterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.fromObject(object.desiredMasterAuthorizedNetworksConfig);
+ }
+ if (object.desiredClusterAutoscaling != null) {
+ if (typeof object.desiredClusterAutoscaling !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredClusterAutoscaling: object expected");
+ message.desiredClusterAutoscaling = $root.google.container.v1.ClusterAutoscaling.fromObject(object.desiredClusterAutoscaling);
+ }
+ if (object.desiredBinaryAuthorization != null) {
+ if (typeof object.desiredBinaryAuthorization !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredBinaryAuthorization: object expected");
+ message.desiredBinaryAuthorization = $root.google.container.v1.BinaryAuthorization.fromObject(object.desiredBinaryAuthorization);
+ }
+ if (object.desiredLoggingService != null)
+ message.desiredLoggingService = String(object.desiredLoggingService);
+ if (object.desiredResourceUsageExportConfig != null) {
+ if (typeof object.desiredResourceUsageExportConfig !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredResourceUsageExportConfig: object expected");
+ message.desiredResourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.fromObject(object.desiredResourceUsageExportConfig);
+ }
+ if (object.desiredVerticalPodAutoscaling != null) {
+ if (typeof object.desiredVerticalPodAutoscaling !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredVerticalPodAutoscaling: object expected");
+ message.desiredVerticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.fromObject(object.desiredVerticalPodAutoscaling);
+ }
+ if (object.desiredPrivateClusterConfig != null) {
+ if (typeof object.desiredPrivateClusterConfig !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredPrivateClusterConfig: object expected");
+ message.desiredPrivateClusterConfig = $root.google.container.v1.PrivateClusterConfig.fromObject(object.desiredPrivateClusterConfig);
+ }
+ if (object.desiredIntraNodeVisibilityConfig != null) {
+ if (typeof object.desiredIntraNodeVisibilityConfig !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredIntraNodeVisibilityConfig: object expected");
+ message.desiredIntraNodeVisibilityConfig = $root.google.container.v1.IntraNodeVisibilityConfig.fromObject(object.desiredIntraNodeVisibilityConfig);
+ }
+ if (object.desiredDefaultSnatStatus != null) {
+ if (typeof object.desiredDefaultSnatStatus !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredDefaultSnatStatus: object expected");
+ message.desiredDefaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.fromObject(object.desiredDefaultSnatStatus);
+ }
+ if (object.desiredReleaseChannel != null) {
+ if (typeof object.desiredReleaseChannel !== "object")
+ throw TypeError(".google.container.v1.ClusterUpdate.desiredReleaseChannel: object expected");
+ message.desiredReleaseChannel = $root.google.container.v1.ReleaseChannel.fromObject(object.desiredReleaseChannel);
+ }
+ if (object.desiredMasterVersion != null)
+ message.desiredMasterVersion = String(object.desiredMasterVersion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ClusterUpdate message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.ClusterUpdate
+ * @static
+ * @param {google.container.v1.ClusterUpdate} message ClusterUpdate
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ClusterUpdate.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.desiredLocations = [];
+ if (options.defaults) {
+ object.desiredNodeVersion = "";
+ object.desiredMonitoringService = "";
+ object.desiredAddonsConfig = null;
+ object.desiredNodePoolId = "";
+ object.desiredImageType = "";
+ object.desiredNodePoolAutoscaling = null;
+ object.desiredMasterAuthorizedNetworksConfig = null;
+ object.desiredClusterAutoscaling = null;
+ object.desiredBinaryAuthorization = null;
+ object.desiredLoggingService = "";
+ object.desiredResourceUsageExportConfig = null;
+ object.desiredVerticalPodAutoscaling = null;
+ object.desiredPrivateClusterConfig = null;
+ object.desiredIntraNodeVisibilityConfig = null;
+ object.desiredDefaultSnatStatus = null;
+ object.desiredReleaseChannel = null;
+ object.desiredDatabaseEncryption = null;
+ object.desiredWorkloadIdentityConfig = null;
+ object.desiredShieldedNodes = null;
+ object.desiredMasterVersion = "";
+ }
+ if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion"))
+ object.desiredNodeVersion = message.desiredNodeVersion;
+ if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService"))
+ object.desiredMonitoringService = message.desiredMonitoringService;
+ if (message.desiredAddonsConfig != null && message.hasOwnProperty("desiredAddonsConfig"))
+ object.desiredAddonsConfig = $root.google.container.v1.AddonsConfig.toObject(message.desiredAddonsConfig, options);
+ if (message.desiredNodePoolId != null && message.hasOwnProperty("desiredNodePoolId"))
+ object.desiredNodePoolId = message.desiredNodePoolId;
+ if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType"))
+ object.desiredImageType = message.desiredImageType;
+ if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("desiredNodePoolAutoscaling"))
+ object.desiredNodePoolAutoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.desiredNodePoolAutoscaling, options);
+ if (message.desiredLocations && message.desiredLocations.length) {
+ object.desiredLocations = [];
+ for (var j = 0; j < message.desiredLocations.length; ++j)
+ object.desiredLocations[j] = message.desiredLocations[j];
+ }
+ if (message.desiredMasterAuthorizedNetworksConfig != null && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig"))
+ object.desiredMasterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.toObject(message.desiredMasterAuthorizedNetworksConfig, options);
+ if (message.desiredClusterAutoscaling != null && message.hasOwnProperty("desiredClusterAutoscaling"))
+ object.desiredClusterAutoscaling = $root.google.container.v1.ClusterAutoscaling.toObject(message.desiredClusterAutoscaling, options);
+ if (message.desiredBinaryAuthorization != null && message.hasOwnProperty("desiredBinaryAuthorization"))
+ object.desiredBinaryAuthorization = $root.google.container.v1.BinaryAuthorization.toObject(message.desiredBinaryAuthorization, options);
+ if (message.desiredLoggingService != null && message.hasOwnProperty("desiredLoggingService"))
+ object.desiredLoggingService = message.desiredLoggingService;
+ if (message.desiredResourceUsageExportConfig != null && message.hasOwnProperty("desiredResourceUsageExportConfig"))
+ object.desiredResourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.toObject(message.desiredResourceUsageExportConfig, options);
+ if (message.desiredVerticalPodAutoscaling != null && message.hasOwnProperty("desiredVerticalPodAutoscaling"))
+ object.desiredVerticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.toObject(message.desiredVerticalPodAutoscaling, options);
+ if (message.desiredPrivateClusterConfig != null && message.hasOwnProperty("desiredPrivateClusterConfig"))
+ object.desiredPrivateClusterConfig = $root.google.container.v1.PrivateClusterConfig.toObject(message.desiredPrivateClusterConfig, options);
+ if (message.desiredIntraNodeVisibilityConfig != null && message.hasOwnProperty("desiredIntraNodeVisibilityConfig"))
+ object.desiredIntraNodeVisibilityConfig = $root.google.container.v1.IntraNodeVisibilityConfig.toObject(message.desiredIntraNodeVisibilityConfig, options);
+ if (message.desiredDefaultSnatStatus != null && message.hasOwnProperty("desiredDefaultSnatStatus"))
+ object.desiredDefaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.toObject(message.desiredDefaultSnatStatus, options);
+ if (message.desiredReleaseChannel != null && message.hasOwnProperty("desiredReleaseChannel"))
+ object.desiredReleaseChannel = $root.google.container.v1.ReleaseChannel.toObject(message.desiredReleaseChannel, options);
+ if (message.desiredDatabaseEncryption != null && message.hasOwnProperty("desiredDatabaseEncryption"))
+ object.desiredDatabaseEncryption = $root.google.container.v1.DatabaseEncryption.toObject(message.desiredDatabaseEncryption, options);
+ if (message.desiredWorkloadIdentityConfig != null && message.hasOwnProperty("desiredWorkloadIdentityConfig"))
+ object.desiredWorkloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.toObject(message.desiredWorkloadIdentityConfig, options);
+ if (message.desiredShieldedNodes != null && message.hasOwnProperty("desiredShieldedNodes"))
+ object.desiredShieldedNodes = $root.google.container.v1.ShieldedNodes.toObject(message.desiredShieldedNodes, options);
+ if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion"))
+ object.desiredMasterVersion = message.desiredMasterVersion;
+ return object;
+ };
+
+ /**
+ * Converts this ClusterUpdate to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.ClusterUpdate
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ClusterUpdate.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return ClusterUpdate;
+ })();
+
+ v1.Operation = (function() {
+
+ /**
+ * Properties of an Operation.
+ * @memberof google.container.v1
+ * @interface IOperation
+ * @property {string|null} [name] Operation name
+ * @property {string|null} [zone] Operation zone
+ * @property {google.container.v1.Operation.Type|null} [operationType] Operation operationType
+ * @property {google.container.v1.Operation.Status|null} [status] Operation status
+ * @property {string|null} [detail] Operation detail
+ * @property {string|null} [statusMessage] Operation statusMessage
+ * @property {string|null} [selfLink] Operation selfLink
+ * @property {string|null} [targetLink] Operation targetLink
+ * @property {string|null} [location] Operation location
+ * @property {string|null} [startTime] Operation startTime
+ * @property {string|null} [endTime] Operation endTime
+ * @property {google.container.v1.IOperationProgress|null} [progress] Operation progress
+ * @property {Array.|null} [clusterConditions] Operation clusterConditions
+ * @property {Array.|null} [nodepoolConditions] Operation nodepoolConditions
+ */
+
+ /**
+ * Constructs a new Operation.
+ * @memberof google.container.v1
+ * @classdesc Represents an Operation.
+ * @implements IOperation
+ * @constructor
+ * @param {google.container.v1.IOperation=} [properties] Properties to set
+ */
+ function Operation(properties) {
+ this.clusterConditions = [];
+ this.nodepoolConditions = [];
+ 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]];
+ }
+
+ /**
+ * Operation name.
+ * @member {string} name
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.name = "";
+
+ /**
+ * Operation zone.
+ * @member {string} zone
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.zone = "";
+
+ /**
+ * Operation operationType.
+ * @member {google.container.v1.Operation.Type} operationType
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.operationType = 0;
+
+ /**
+ * Operation status.
+ * @member {google.container.v1.Operation.Status} status
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.status = 0;
+
+ /**
+ * Operation detail.
+ * @member {string} detail
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.detail = "";
+
+ /**
+ * Operation statusMessage.
+ * @member {string} statusMessage
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.statusMessage = "";
+
+ /**
+ * Operation selfLink.
+ * @member {string} selfLink
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.selfLink = "";
+
+ /**
+ * Operation targetLink.
+ * @member {string} targetLink
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.targetLink = "";
+
+ /**
+ * Operation location.
+ * @member {string} location
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.location = "";
+
+ /**
+ * Operation startTime.
+ * @member {string} startTime
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.startTime = "";
+
+ /**
+ * Operation endTime.
+ * @member {string} endTime
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.endTime = "";
+
+ /**
+ * Operation progress.
+ * @member {google.container.v1.IOperationProgress|null|undefined} progress
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.progress = null;
+
+ /**
+ * Operation clusterConditions.
+ * @member {Array.} clusterConditions
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.clusterConditions = $util.emptyArray;
+
+ /**
+ * Operation nodepoolConditions.
+ * @member {Array.} nodepoolConditions
+ * @memberof google.container.v1.Operation
+ * @instance
+ */
+ Operation.prototype.nodepoolConditions = $util.emptyArray;
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.Operation
+ * @static
+ * @param {google.container.v1.IOperation=} [properties] Properties to set
+ * @returns {google.container.v1.Operation} Operation instance
+ */
+ Operation.create = function create(properties) {
+ return new Operation(properties);
+ };
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.container.v1.Operation.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.Operation
+ * @static
+ * @param {google.container.v1.IOperation} message Operation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Operation.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
+ if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.operationType);
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status);
+ if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage);
+ if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.selfLink);
+ if (message.targetLink != null && Object.hasOwnProperty.call(message, "targetLink"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.targetLink);
+ if (message.detail != null && Object.hasOwnProperty.call(message, "detail"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.detail);
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.location);
+ if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.startTime);
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.endTime);
+ if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
+ $root.google.container.v1.OperationProgress.encode(message.progress, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
+ if (message.clusterConditions != null && message.clusterConditions.length)
+ for (var i = 0; i < message.clusterConditions.length; ++i)
+ $root.google.container.v1.StatusCondition.encode(message.clusterConditions[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
+ if (message.nodepoolConditions != null && message.nodepoolConditions.length)
+ for (var i = 0; i < message.nodepoolConditions.length; ++i)
+ $root.google.container.v1.StatusCondition.encode(message.nodepoolConditions[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.container.v1.Operation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.Operation
+ * @static
+ * @param {google.container.v1.IOperation} message Operation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Operation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.Operation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.Operation} Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Operation.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.Operation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.name = reader.string();
+ break;
+ case 2:
+ message.zone = reader.string();
+ break;
+ case 3:
+ message.operationType = reader.int32();
+ break;
+ case 4:
+ message.status = reader.int32();
+ break;
+ case 8:
+ message.detail = reader.string();
+ break;
+ case 5:
+ message.statusMessage = reader.string();
+ break;
+ case 6:
+ message.selfLink = reader.string();
+ break;
+ case 7:
+ message.targetLink = reader.string();
+ break;
+ case 9:
+ message.location = reader.string();
+ break;
+ case 10:
+ message.startTime = reader.string();
+ break;
+ case 11:
+ message.endTime = reader.string();
+ break;
+ case 12:
+ message.progress = $root.google.container.v1.OperationProgress.decode(reader, reader.uint32());
+ break;
+ case 13:
+ if (!(message.clusterConditions && message.clusterConditions.length))
+ message.clusterConditions = [];
+ message.clusterConditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32()));
+ break;
+ case 14:
+ if (!(message.nodepoolConditions && message.nodepoolConditions.length))
+ message.nodepoolConditions = [];
+ message.nodepoolConditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.Operation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.Operation} Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Operation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Operation message.
+ * @function verify
+ * @memberof google.container.v1.Operation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Operation.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ if (!$util.isString(message.zone))
+ return "zone: string expected";
+ if (message.operationType != null && message.hasOwnProperty("operationType"))
+ switch (message.operationType) {
+ default:
+ return "operationType: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13:
+ case 14:
+ case 15:
+ case 16:
+ break;
+ }
+ if (message.status != null && message.hasOwnProperty("status"))
+ switch (message.status) {
+ default:
+ return "status: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.detail != null && message.hasOwnProperty("detail"))
+ if (!$util.isString(message.detail))
+ return "detail: string expected";
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ if (!$util.isString(message.statusMessage))
+ return "statusMessage: string expected";
+ if (message.selfLink != null && message.hasOwnProperty("selfLink"))
+ if (!$util.isString(message.selfLink))
+ return "selfLink: string expected";
+ if (message.targetLink != null && message.hasOwnProperty("targetLink"))
+ if (!$util.isString(message.targetLink))
+ return "targetLink: string expected";
+ if (message.location != null && message.hasOwnProperty("location"))
+ if (!$util.isString(message.location))
+ return "location: string expected";
+ if (message.startTime != null && message.hasOwnProperty("startTime"))
+ if (!$util.isString(message.startTime))
+ return "startTime: string expected";
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ if (!$util.isString(message.endTime))
+ return "endTime: string expected";
+ if (message.progress != null && message.hasOwnProperty("progress")) {
+ var error = $root.google.container.v1.OperationProgress.verify(message.progress);
+ if (error)
+ return "progress." + error;
+ }
+ if (message.clusterConditions != null && message.hasOwnProperty("clusterConditions")) {
+ if (!Array.isArray(message.clusterConditions))
+ return "clusterConditions: array expected";
+ for (var i = 0; i < message.clusterConditions.length; ++i) {
+ var error = $root.google.container.v1.StatusCondition.verify(message.clusterConditions[i]);
+ if (error)
+ return "clusterConditions." + error;
+ }
+ }
+ if (message.nodepoolConditions != null && message.hasOwnProperty("nodepoolConditions")) {
+ if (!Array.isArray(message.nodepoolConditions))
+ return "nodepoolConditions: array expected";
+ for (var i = 0; i < message.nodepoolConditions.length; ++i) {
+ var error = $root.google.container.v1.StatusCondition.verify(message.nodepoolConditions[i]);
+ if (error)
+ return "nodepoolConditions." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.Operation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.Operation} Operation
+ */
+ Operation.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.Operation)
+ return object;
+ var message = new $root.google.container.v1.Operation();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.zone != null)
+ message.zone = String(object.zone);
+ switch (object.operationType) {
+ case "TYPE_UNSPECIFIED":
+ case 0:
+ message.operationType = 0;
+ break;
+ case "CREATE_CLUSTER":
+ case 1:
+ message.operationType = 1;
+ break;
+ case "DELETE_CLUSTER":
+ case 2:
+ message.operationType = 2;
+ break;
+ case "UPGRADE_MASTER":
+ case 3:
+ message.operationType = 3;
+ break;
+ case "UPGRADE_NODES":
+ case 4:
+ message.operationType = 4;
+ break;
+ case "REPAIR_CLUSTER":
+ case 5:
+ message.operationType = 5;
+ break;
+ case "UPDATE_CLUSTER":
+ case 6:
+ message.operationType = 6;
+ break;
+ case "CREATE_NODE_POOL":
+ case 7:
+ message.operationType = 7;
+ break;
+ case "DELETE_NODE_POOL":
+ case 8:
+ message.operationType = 8;
+ break;
+ case "SET_NODE_POOL_MANAGEMENT":
+ case 9:
+ message.operationType = 9;
+ break;
+ case "AUTO_REPAIR_NODES":
+ case 10:
+ message.operationType = 10;
+ break;
+ case "AUTO_UPGRADE_NODES":
+ case 11:
+ message.operationType = 11;
+ break;
+ case "SET_LABELS":
+ case 12:
+ message.operationType = 12;
+ break;
+ case "SET_MASTER_AUTH":
+ case 13:
+ message.operationType = 13;
+ break;
+ case "SET_NODE_POOL_SIZE":
+ case 14:
+ message.operationType = 14;
+ break;
+ case "SET_NETWORK_POLICY":
+ case 15:
+ message.operationType = 15;
+ break;
+ case "SET_MAINTENANCE_POLICY":
+ case 16:
+ message.operationType = 16;
+ break;
+ }
+ switch (object.status) {
+ case "STATUS_UNSPECIFIED":
+ case 0:
+ message.status = 0;
+ break;
+ case "PENDING":
+ case 1:
+ message.status = 1;
+ break;
+ case "RUNNING":
+ case 2:
+ message.status = 2;
+ break;
+ case "DONE":
+ case 3:
+ message.status = 3;
+ break;
+ case "ABORTING":
+ case 4:
+ message.status = 4;
+ break;
+ }
+ if (object.detail != null)
+ message.detail = String(object.detail);
+ if (object.statusMessage != null)
+ message.statusMessage = String(object.statusMessage);
+ if (object.selfLink != null)
+ message.selfLink = String(object.selfLink);
+ if (object.targetLink != null)
+ message.targetLink = String(object.targetLink);
+ if (object.location != null)
+ message.location = String(object.location);
+ if (object.startTime != null)
+ message.startTime = String(object.startTime);
+ if (object.endTime != null)
+ message.endTime = String(object.endTime);
+ if (object.progress != null) {
+ if (typeof object.progress !== "object")
+ throw TypeError(".google.container.v1.Operation.progress: object expected");
+ message.progress = $root.google.container.v1.OperationProgress.fromObject(object.progress);
+ }
+ if (object.clusterConditions) {
+ if (!Array.isArray(object.clusterConditions))
+ throw TypeError(".google.container.v1.Operation.clusterConditions: array expected");
+ message.clusterConditions = [];
+ for (var i = 0; i < object.clusterConditions.length; ++i) {
+ if (typeof object.clusterConditions[i] !== "object")
+ throw TypeError(".google.container.v1.Operation.clusterConditions: object expected");
+ message.clusterConditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.clusterConditions[i]);
+ }
+ }
+ if (object.nodepoolConditions) {
+ if (!Array.isArray(object.nodepoolConditions))
+ throw TypeError(".google.container.v1.Operation.nodepoolConditions: array expected");
+ message.nodepoolConditions = [];
+ for (var i = 0; i < object.nodepoolConditions.length; ++i) {
+ if (typeof object.nodepoolConditions[i] !== "object")
+ throw TypeError(".google.container.v1.Operation.nodepoolConditions: object expected");
+ message.nodepoolConditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.nodepoolConditions[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.Operation
+ * @static
+ * @param {google.container.v1.Operation} message Operation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Operation.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.clusterConditions = [];
+ object.nodepoolConditions = [];
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.zone = "";
+ object.operationType = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
+ object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0;
+ object.statusMessage = "";
+ object.selfLink = "";
+ object.targetLink = "";
+ object.detail = "";
+ object.location = "";
+ object.startTime = "";
+ object.endTime = "";
+ object.progress = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ object.zone = message.zone;
+ if (message.operationType != null && message.hasOwnProperty("operationType"))
+ object.operationType = options.enums === String ? $root.google.container.v1.Operation.Type[message.operationType] : message.operationType;
+ if (message.status != null && message.hasOwnProperty("status"))
+ object.status = options.enums === String ? $root.google.container.v1.Operation.Status[message.status] : message.status;
+ if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
+ object.statusMessage = message.statusMessage;
+ if (message.selfLink != null && message.hasOwnProperty("selfLink"))
+ object.selfLink = message.selfLink;
+ if (message.targetLink != null && message.hasOwnProperty("targetLink"))
+ object.targetLink = message.targetLink;
+ if (message.detail != null && message.hasOwnProperty("detail"))
+ object.detail = message.detail;
+ if (message.location != null && message.hasOwnProperty("location"))
+ object.location = message.location;
+ if (message.startTime != null && message.hasOwnProperty("startTime"))
+ object.startTime = message.startTime;
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = message.endTime;
+ if (message.progress != null && message.hasOwnProperty("progress"))
+ object.progress = $root.google.container.v1.OperationProgress.toObject(message.progress, options);
+ if (message.clusterConditions && message.clusterConditions.length) {
+ object.clusterConditions = [];
+ for (var j = 0; j < message.clusterConditions.length; ++j)
+ object.clusterConditions[j] = $root.google.container.v1.StatusCondition.toObject(message.clusterConditions[j], options);
+ }
+ if (message.nodepoolConditions && message.nodepoolConditions.length) {
+ object.nodepoolConditions = [];
+ for (var j = 0; j < message.nodepoolConditions.length; ++j)
+ object.nodepoolConditions[j] = $root.google.container.v1.StatusCondition.toObject(message.nodepoolConditions[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Operation to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.Operation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Operation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Status enum.
+ * @name google.container.v1.Operation.Status
+ * @enum {number}
+ * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value
+ * @property {number} PENDING=1 PENDING value
+ * @property {number} RUNNING=2 RUNNING value
+ * @property {number} DONE=3 DONE value
+ * @property {number} ABORTING=4 ABORTING value
+ */
+ Operation.Status = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATUS_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PENDING"] = 1;
+ values[valuesById[2] = "RUNNING"] = 2;
+ values[valuesById[3] = "DONE"] = 3;
+ values[valuesById[4] = "ABORTING"] = 4;
+ return values;
+ })();
+
+ /**
+ * Type enum.
+ * @name google.container.v1.Operation.Type
+ * @enum {number}
+ * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value
+ * @property {number} CREATE_CLUSTER=1 CREATE_CLUSTER value
+ * @property {number} DELETE_CLUSTER=2 DELETE_CLUSTER value
+ * @property {number} UPGRADE_MASTER=3 UPGRADE_MASTER value
+ * @property {number} UPGRADE_NODES=4 UPGRADE_NODES value
+ * @property {number} REPAIR_CLUSTER=5 REPAIR_CLUSTER value
+ * @property {number} UPDATE_CLUSTER=6 UPDATE_CLUSTER value
+ * @property {number} CREATE_NODE_POOL=7 CREATE_NODE_POOL value
+ * @property {number} DELETE_NODE_POOL=8 DELETE_NODE_POOL value
+ * @property {number} SET_NODE_POOL_MANAGEMENT=9 SET_NODE_POOL_MANAGEMENT value
+ * @property {number} AUTO_REPAIR_NODES=10 AUTO_REPAIR_NODES value
+ * @property {number} AUTO_UPGRADE_NODES=11 AUTO_UPGRADE_NODES value
+ * @property {number} SET_LABELS=12 SET_LABELS value
+ * @property {number} SET_MASTER_AUTH=13 SET_MASTER_AUTH value
+ * @property {number} SET_NODE_POOL_SIZE=14 SET_NODE_POOL_SIZE value
+ * @property {number} SET_NETWORK_POLICY=15 SET_NETWORK_POLICY value
+ * @property {number} SET_MAINTENANCE_POLICY=16 SET_MAINTENANCE_POLICY value
+ */
+ Operation.Type = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CREATE_CLUSTER"] = 1;
+ values[valuesById[2] = "DELETE_CLUSTER"] = 2;
+ values[valuesById[3] = "UPGRADE_MASTER"] = 3;
+ values[valuesById[4] = "UPGRADE_NODES"] = 4;
+ values[valuesById[5] = "REPAIR_CLUSTER"] = 5;
+ values[valuesById[6] = "UPDATE_CLUSTER"] = 6;
+ values[valuesById[7] = "CREATE_NODE_POOL"] = 7;
+ values[valuesById[8] = "DELETE_NODE_POOL"] = 8;
+ values[valuesById[9] = "SET_NODE_POOL_MANAGEMENT"] = 9;
+ values[valuesById[10] = "AUTO_REPAIR_NODES"] = 10;
+ values[valuesById[11] = "AUTO_UPGRADE_NODES"] = 11;
+ values[valuesById[12] = "SET_LABELS"] = 12;
+ values[valuesById[13] = "SET_MASTER_AUTH"] = 13;
+ values[valuesById[14] = "SET_NODE_POOL_SIZE"] = 14;
+ values[valuesById[15] = "SET_NETWORK_POLICY"] = 15;
+ values[valuesById[16] = "SET_MAINTENANCE_POLICY"] = 16;
+ return values;
+ })();
+
+ return Operation;
+ })();
+
+ v1.OperationProgress = (function() {
+
+ /**
+ * Properties of an OperationProgress.
+ * @memberof google.container.v1
+ * @interface IOperationProgress
+ * @property {string|null} [name] OperationProgress name
+ * @property {google.container.v1.Operation.Status|null} [status] OperationProgress status
+ * @property {Array.|null} [metrics] OperationProgress metrics
+ * @property {Array.|null} [stages] OperationProgress stages
+ */
+
+ /**
+ * Constructs a new OperationProgress.
+ * @memberof google.container.v1
+ * @classdesc Represents an OperationProgress.
+ * @implements IOperationProgress
+ * @constructor
+ * @param {google.container.v1.IOperationProgress=} [properties] Properties to set
+ */
+ function OperationProgress(properties) {
+ this.metrics = [];
+ this.stages = [];
+ 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]];
+ }
+
+ /**
+ * OperationProgress name.
+ * @member {string} name
+ * @memberof google.container.v1.OperationProgress
+ * @instance
+ */
+ OperationProgress.prototype.name = "";
+
+ /**
+ * OperationProgress status.
+ * @member {google.container.v1.Operation.Status} status
+ * @memberof google.container.v1.OperationProgress
+ * @instance
+ */
+ OperationProgress.prototype.status = 0;
+
+ /**
+ * OperationProgress metrics.
+ * @member {Array.} metrics
+ * @memberof google.container.v1.OperationProgress
+ * @instance
+ */
+ OperationProgress.prototype.metrics = $util.emptyArray;
+
+ /**
+ * OperationProgress stages.
+ * @member {Array.} stages
+ * @memberof google.container.v1.OperationProgress
+ * @instance
+ */
+ OperationProgress.prototype.stages = $util.emptyArray;
+
+ /**
+ * Creates a new OperationProgress instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.OperationProgress
+ * @static
+ * @param {google.container.v1.IOperationProgress=} [properties] Properties to set
+ * @returns {google.container.v1.OperationProgress} OperationProgress instance
+ */
+ OperationProgress.create = function create(properties) {
+ return new OperationProgress(properties);
+ };
+
+ /**
+ * Encodes the specified OperationProgress message. Does not implicitly {@link google.container.v1.OperationProgress.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.OperationProgress
+ * @static
+ * @param {google.container.v1.IOperationProgress} message OperationProgress message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationProgress.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status);
+ if (message.metrics != null && message.metrics.length)
+ for (var i = 0; i < message.metrics.length; ++i)
+ $root.google.container.v1.OperationProgress.Metric.encode(message.metrics[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.stages != null && message.stages.length)
+ for (var i = 0; i < message.stages.length; ++i)
+ $root.google.container.v1.OperationProgress.encode(message.stages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OperationProgress message, length delimited. Does not implicitly {@link google.container.v1.OperationProgress.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.OperationProgress
+ * @static
+ * @param {google.container.v1.IOperationProgress} message OperationProgress message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationProgress.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OperationProgress message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.OperationProgress
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.OperationProgress} OperationProgress
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationProgress.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.OperationProgress();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.name = reader.string();
+ break;
+ case 2:
+ message.status = reader.int32();
+ break;
+ case 3:
+ if (!(message.metrics && message.metrics.length))
+ message.metrics = [];
+ message.metrics.push($root.google.container.v1.OperationProgress.Metric.decode(reader, reader.uint32()));
+ break;
+ case 4:
+ if (!(message.stages && message.stages.length))
+ message.stages = [];
+ message.stages.push($root.google.container.v1.OperationProgress.decode(reader, reader.uint32()));
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OperationProgress message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.OperationProgress
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.OperationProgress} OperationProgress
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationProgress.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OperationProgress message.
+ * @function verify
+ * @memberof google.container.v1.OperationProgress
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OperationProgress.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.status != null && message.hasOwnProperty("status"))
+ switch (message.status) {
+ default:
+ return "status: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.metrics != null && message.hasOwnProperty("metrics")) {
+ if (!Array.isArray(message.metrics))
+ return "metrics: array expected";
+ for (var i = 0; i < message.metrics.length; ++i) {
+ var error = $root.google.container.v1.OperationProgress.Metric.verify(message.metrics[i]);
+ if (error)
+ return "metrics." + error;
+ }
+ }
+ if (message.stages != null && message.hasOwnProperty("stages")) {
+ if (!Array.isArray(message.stages))
+ return "stages: array expected";
+ for (var i = 0; i < message.stages.length; ++i) {
+ var error = $root.google.container.v1.OperationProgress.verify(message.stages[i]);
+ if (error)
+ return "stages." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an OperationProgress message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.OperationProgress
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.OperationProgress} OperationProgress
+ */
+ OperationProgress.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.OperationProgress)
+ return object;
+ var message = new $root.google.container.v1.OperationProgress();
+ if (object.name != null)
+ message.name = String(object.name);
+ switch (object.status) {
+ case "STATUS_UNSPECIFIED":
+ case 0:
+ message.status = 0;
+ break;
+ case "PENDING":
+ case 1:
+ message.status = 1;
+ break;
+ case "RUNNING":
+ case 2:
+ message.status = 2;
+ break;
+ case "DONE":
+ case 3:
+ message.status = 3;
+ break;
+ case "ABORTING":
+ case 4:
+ message.status = 4;
+ break;
+ }
+ if (object.metrics) {
+ if (!Array.isArray(object.metrics))
+ throw TypeError(".google.container.v1.OperationProgress.metrics: array expected");
+ message.metrics = [];
+ for (var i = 0; i < object.metrics.length; ++i) {
+ if (typeof object.metrics[i] !== "object")
+ throw TypeError(".google.container.v1.OperationProgress.metrics: object expected");
+ message.metrics[i] = $root.google.container.v1.OperationProgress.Metric.fromObject(object.metrics[i]);
+ }
+ }
+ if (object.stages) {
+ if (!Array.isArray(object.stages))
+ throw TypeError(".google.container.v1.OperationProgress.stages: array expected");
+ message.stages = [];
+ for (var i = 0; i < object.stages.length; ++i) {
+ if (typeof object.stages[i] !== "object")
+ throw TypeError(".google.container.v1.OperationProgress.stages: object expected");
+ message.stages[i] = $root.google.container.v1.OperationProgress.fromObject(object.stages[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OperationProgress message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.OperationProgress
+ * @static
+ * @param {google.container.v1.OperationProgress} message OperationProgress
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OperationProgress.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.metrics = [];
+ object.stages = [];
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.status != null && message.hasOwnProperty("status"))
+ object.status = options.enums === String ? $root.google.container.v1.Operation.Status[message.status] : message.status;
+ if (message.metrics && message.metrics.length) {
+ object.metrics = [];
+ for (var j = 0; j < message.metrics.length; ++j)
+ object.metrics[j] = $root.google.container.v1.OperationProgress.Metric.toObject(message.metrics[j], options);
+ }
+ if (message.stages && message.stages.length) {
+ object.stages = [];
+ for (var j = 0; j < message.stages.length; ++j)
+ object.stages[j] = $root.google.container.v1.OperationProgress.toObject(message.stages[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this OperationProgress to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.OperationProgress
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OperationProgress.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ OperationProgress.Metric = (function() {
+
+ /**
+ * Properties of a Metric.
+ * @memberof google.container.v1.OperationProgress
+ * @interface IMetric
+ * @property {string|null} [name] Metric name
+ * @property {number|Long|null} [intValue] Metric intValue
+ * @property {number|null} [doubleValue] Metric doubleValue
+ * @property {string|null} [stringValue] Metric stringValue
+ */
+
+ /**
+ * Constructs a new Metric.
+ * @memberof google.container.v1.OperationProgress
+ * @classdesc Represents a Metric.
+ * @implements IMetric
+ * @constructor
+ * @param {google.container.v1.OperationProgress.IMetric=} [properties] Properties to set
+ */
+ function Metric(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]];
+ }
+
+ /**
+ * Metric name.
+ * @member {string} name
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @instance
+ */
+ Metric.prototype.name = "";
+
+ /**
+ * Metric intValue.
+ * @member {number|Long} intValue
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @instance
+ */
+ Metric.prototype.intValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * Metric doubleValue.
+ * @member {number} doubleValue
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @instance
+ */
+ Metric.prototype.doubleValue = 0;
+
+ /**
+ * Metric stringValue.
+ * @member {string} stringValue
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @instance
+ */
+ Metric.prototype.stringValue = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Metric value.
+ * @member {"intValue"|"doubleValue"|"stringValue"|undefined} value
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @instance
+ */
+ Object.defineProperty(Metric.prototype, "value", {
+ get: $util.oneOfGetter($oneOfFields = ["intValue", "doubleValue", "stringValue"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Metric instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @static
+ * @param {google.container.v1.OperationProgress.IMetric=} [properties] Properties to set
+ * @returns {google.container.v1.OperationProgress.Metric} Metric instance
+ */
+ Metric.create = function create(properties) {
+ return new Metric(properties);
+ };
+
+ /**
+ * Encodes the specified Metric message. Does not implicitly {@link google.container.v1.OperationProgress.Metric.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @static
+ * @param {google.container.v1.OperationProgress.IMetric} message Metric message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Metric.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.intValue);
+ if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue"))
+ writer.uint32(/* id 3, wireType 1 =*/25).double(message.doubleValue);
+ if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.stringValue);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.container.v1.OperationProgress.Metric.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @static
+ * @param {google.container.v1.OperationProgress.IMetric} message Metric message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Metric.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Metric message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.OperationProgress.Metric} Metric
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Metric.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.OperationProgress.Metric();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.name = reader.string();
+ break;
+ case 2:
+ message.intValue = reader.int64();
+ break;
+ case 3:
+ message.doubleValue = reader.double();
+ break;
+ case 4:
+ message.stringValue = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Metric message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.OperationProgress.Metric} Metric
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Metric.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Metric message.
+ * @function verify
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Metric.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.intValue != null && message.hasOwnProperty("intValue")) {
+ properties.value = 1;
+ if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high)))
+ return "intValue: integer|Long expected";
+ }
+ if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) {
+ if (properties.value === 1)
+ return "value: multiple values";
+ properties.value = 1;
+ if (typeof message.doubleValue !== "number")
+ return "doubleValue: number expected";
+ }
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
+ if (properties.value === 1)
+ return "value: multiple values";
+ properties.value = 1;
+ if (!$util.isString(message.stringValue))
+ return "stringValue: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Metric message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.OperationProgress.Metric} Metric
+ */
+ Metric.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.OperationProgress.Metric)
+ return object;
+ var message = new $root.google.container.v1.OperationProgress.Metric();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.intValue != null)
+ if ($util.Long)
+ (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false;
+ else if (typeof object.intValue === "string")
+ message.intValue = parseInt(object.intValue, 10);
+ else if (typeof object.intValue === "number")
+ message.intValue = object.intValue;
+ else if (typeof object.intValue === "object")
+ message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber();
+ if (object.doubleValue != null)
+ message.doubleValue = Number(object.doubleValue);
+ if (object.stringValue != null)
+ message.stringValue = String(object.stringValue);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Metric message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @static
+ * @param {google.container.v1.OperationProgress.Metric} message Metric
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Metric.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.intValue != null && message.hasOwnProperty("intValue")) {
+ if (typeof message.intValue === "number")
+ object.intValue = options.longs === String ? String(message.intValue) : message.intValue;
+ else
+ object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue;
+ if (options.oneofs)
+ object.value = "intValue";
+ }
+ if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) {
+ object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue;
+ if (options.oneofs)
+ object.value = "doubleValue";
+ }
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
+ object.stringValue = message.stringValue;
+ if (options.oneofs)
+ object.value = "stringValue";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Metric to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.OperationProgress.Metric
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Metric.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return Metric;
+ })();
+
+ return OperationProgress;
+ })();
+
+ v1.CreateClusterRequest = (function() {
+
+ /**
+ * Properties of a CreateClusterRequest.
+ * @memberof google.container.v1
+ * @interface ICreateClusterRequest
+ * @property {string|null} [projectId] CreateClusterRequest projectId
+ * @property {string|null} [zone] CreateClusterRequest zone
+ * @property {google.container.v1.ICluster|null} [cluster] CreateClusterRequest cluster
+ * @property {string|null} [parent] CreateClusterRequest parent
+ */
+
+ /**
+ * Constructs a new CreateClusterRequest.
+ * @memberof google.container.v1
+ * @classdesc Represents a CreateClusterRequest.
+ * @implements ICreateClusterRequest
+ * @constructor
+ * @param {google.container.v1.ICreateClusterRequest=} [properties] Properties to set
+ */
+ function CreateClusterRequest(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]];
+ }
+
+ /**
+ * CreateClusterRequest projectId.
+ * @member {string} projectId
+ * @memberof google.container.v1.CreateClusterRequest
+ * @instance
+ */
+ CreateClusterRequest.prototype.projectId = "";
+
+ /**
+ * CreateClusterRequest zone.
+ * @member {string} zone
+ * @memberof google.container.v1.CreateClusterRequest
+ * @instance
+ */
+ CreateClusterRequest.prototype.zone = "";
+
+ /**
+ * CreateClusterRequest cluster.
+ * @member {google.container.v1.ICluster|null|undefined} cluster
+ * @memberof google.container.v1.CreateClusterRequest
+ * @instance
+ */
+ CreateClusterRequest.prototype.cluster = null;
+
+ /**
+ * CreateClusterRequest parent.
+ * @member {string} parent
+ * @memberof google.container.v1.CreateClusterRequest
+ * @instance
+ */
+ CreateClusterRequest.prototype.parent = "";
+
+ /**
+ * Creates a new CreateClusterRequest instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.CreateClusterRequest
+ * @static
+ * @param {google.container.v1.ICreateClusterRequest=} [properties] Properties to set
+ * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest instance
+ */
+ CreateClusterRequest.create = function create(properties) {
+ return new CreateClusterRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.container.v1.CreateClusterRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.CreateClusterRequest
+ * @static
+ * @param {google.container.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateClusterRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
+ if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster"))
+ $root.google.container.v1.Cluster.encode(message.cluster, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateClusterRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.CreateClusterRequest
+ * @static
+ * @param {google.container.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateClusterRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.CreateClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateClusterRequest.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.CreateClusterRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.projectId = reader.string();
+ break;
+ case 2:
+ message.zone = reader.string();
+ break;
+ case 3:
+ message.cluster = $root.google.container.v1.Cluster.decode(reader, reader.uint32());
+ break;
+ case 5:
+ message.parent = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.CreateClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateClusterRequest message.
+ * @function verify
+ * @memberof google.container.v1.CreateClusterRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateClusterRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ if (!$util.isString(message.zone))
+ return "zone: string expected";
+ if (message.cluster != null && message.hasOwnProperty("cluster")) {
+ var error = $root.google.container.v1.Cluster.verify(message.cluster);
+ if (error)
+ return "cluster." + error;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.CreateClusterRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest
+ */
+ CreateClusterRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.CreateClusterRequest)
+ return object;
+ var message = new $root.google.container.v1.CreateClusterRequest();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.zone != null)
+ message.zone = String(object.zone);
+ if (object.cluster != null) {
+ if (typeof object.cluster !== "object")
+ throw TypeError(".google.container.v1.CreateClusterRequest.cluster: object expected");
+ message.cluster = $root.google.container.v1.Cluster.fromObject(object.cluster);
+ }
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.CreateClusterRequest
+ * @static
+ * @param {google.container.v1.CreateClusterRequest} message CreateClusterRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateClusterRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.zone = "";
+ object.cluster = null;
+ object.parent = "";
+ }
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ object.projectId = message.projectId;
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ object.zone = message.zone;
+ if (message.cluster != null && message.hasOwnProperty("cluster"))
+ object.cluster = $root.google.container.v1.Cluster.toObject(message.cluster, options);
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ return object;
+ };
+
+ /**
+ * Converts this CreateClusterRequest to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.CreateClusterRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateClusterRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return CreateClusterRequest;
+ })();
+
+ v1.GetClusterRequest = (function() {
+
+ /**
+ * Properties of a GetClusterRequest.
+ * @memberof google.container.v1
+ * @interface IGetClusterRequest
+ * @property {string|null} [projectId] GetClusterRequest projectId
+ * @property {string|null} [zone] GetClusterRequest zone
+ * @property {string|null} [clusterId] GetClusterRequest clusterId
+ * @property {string|null} [name] GetClusterRequest name
+ */
+
+ /**
+ * Constructs a new GetClusterRequest.
+ * @memberof google.container.v1
+ * @classdesc Represents a GetClusterRequest.
+ * @implements IGetClusterRequest
+ * @constructor
+ * @param {google.container.v1.IGetClusterRequest=} [properties] Properties to set
+ */
+ function GetClusterRequest(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]];
+ }
+
+ /**
+ * GetClusterRequest projectId.
+ * @member {string} projectId
+ * @memberof google.container.v1.GetClusterRequest
+ * @instance
+ */
+ GetClusterRequest.prototype.projectId = "";
+
+ /**
+ * GetClusterRequest zone.
+ * @member {string} zone
+ * @memberof google.container.v1.GetClusterRequest
+ * @instance
+ */
+ GetClusterRequest.prototype.zone = "";
+
+ /**
+ * GetClusterRequest clusterId.
+ * @member {string} clusterId
+ * @memberof google.container.v1.GetClusterRequest
+ * @instance
+ */
+ GetClusterRequest.prototype.clusterId = "";
+
+ /**
+ * GetClusterRequest name.
+ * @member {string} name
+ * @memberof google.container.v1.GetClusterRequest
+ * @instance
+ */
+ GetClusterRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetClusterRequest instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.GetClusterRequest
+ * @static
+ * @param {google.container.v1.IGetClusterRequest=} [properties] Properties to set
+ * @returns {google.container.v1.GetClusterRequest} GetClusterRequest instance
+ */
+ GetClusterRequest.create = function create(properties) {
+ return new GetClusterRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.container.v1.GetClusterRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.GetClusterRequest
+ * @static
+ * @param {google.container.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetClusterRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
+ if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.GetClusterRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.GetClusterRequest
+ * @static
+ * @param {google.container.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetClusterRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.GetClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.GetClusterRequest} GetClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetClusterRequest.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.GetClusterRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.projectId = reader.string();
+ break;
+ case 2:
+ message.zone = reader.string();
+ break;
+ case 3:
+ message.clusterId = reader.string();
+ break;
+ case 5:
+ message.name = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.GetClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.GetClusterRequest} GetClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetClusterRequest message.
+ * @function verify
+ * @memberof google.container.v1.GetClusterRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetClusterRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ if (!$util.isString(message.zone))
+ return "zone: string expected";
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ if (!$util.isString(message.clusterId))
+ return "clusterId: string expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.GetClusterRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.GetClusterRequest} GetClusterRequest
+ */
+ GetClusterRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.GetClusterRequest)
+ return object;
+ var message = new $root.google.container.v1.GetClusterRequest();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.zone != null)
+ message.zone = String(object.zone);
+ if (object.clusterId != null)
+ message.clusterId = String(object.clusterId);
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.GetClusterRequest
+ * @static
+ * @param {google.container.v1.GetClusterRequest} message GetClusterRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetClusterRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.zone = "";
+ object.clusterId = "";
+ object.name = "";
+ }
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ object.projectId = message.projectId;
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ object.zone = message.zone;
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ object.clusterId = message.clusterId;
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetClusterRequest to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.GetClusterRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetClusterRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return GetClusterRequest;
+ })();
+
+ v1.UpdateClusterRequest = (function() {
+
+ /**
+ * Properties of an UpdateClusterRequest.
+ * @memberof google.container.v1
+ * @interface IUpdateClusterRequest
+ * @property {string|null} [projectId] UpdateClusterRequest projectId
+ * @property {string|null} [zone] UpdateClusterRequest zone
+ * @property {string|null} [clusterId] UpdateClusterRequest clusterId
+ * @property {google.container.v1.IClusterUpdate|null} [update] UpdateClusterRequest update
+ * @property {string|null} [name] UpdateClusterRequest name
+ */
+
+ /**
+ * Constructs a new UpdateClusterRequest.
+ * @memberof google.container.v1
+ * @classdesc Represents an UpdateClusterRequest.
+ * @implements IUpdateClusterRequest
+ * @constructor
+ * @param {google.container.v1.IUpdateClusterRequest=} [properties] Properties to set
+ */
+ function UpdateClusterRequest(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]];
+ }
+
+ /**
+ * UpdateClusterRequest projectId.
+ * @member {string} projectId
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @instance
+ */
+ UpdateClusterRequest.prototype.projectId = "";
+
+ /**
+ * UpdateClusterRequest zone.
+ * @member {string} zone
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @instance
+ */
+ UpdateClusterRequest.prototype.zone = "";
+
+ /**
+ * UpdateClusterRequest clusterId.
+ * @member {string} clusterId
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @instance
+ */
+ UpdateClusterRequest.prototype.clusterId = "";
+
+ /**
+ * UpdateClusterRequest update.
+ * @member {google.container.v1.IClusterUpdate|null|undefined} update
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @instance
+ */
+ UpdateClusterRequest.prototype.update = null;
+
+ /**
+ * UpdateClusterRequest name.
+ * @member {string} name
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @instance
+ */
+ UpdateClusterRequest.prototype.name = "";
+
+ /**
+ * Creates a new UpdateClusterRequest instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @static
+ * @param {google.container.v1.IUpdateClusterRequest=} [properties] Properties to set
+ * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest instance
+ */
+ UpdateClusterRequest.create = function create(properties) {
+ return new UpdateClusterRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.container.v1.UpdateClusterRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @static
+ * @param {google.container.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateClusterRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
+ if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
+ if (message.update != null && Object.hasOwnProperty.call(message, "update"))
+ $root.google.container.v1.ClusterUpdate.encode(message.update, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateClusterRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @static
+ * @param {google.container.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateClusterRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateClusterRequest.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.UpdateClusterRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.projectId = reader.string();
+ break;
+ case 2:
+ message.zone = reader.string();
+ break;
+ case 3:
+ message.clusterId = reader.string();
+ break;
+ case 4:
+ message.update = $root.google.container.v1.ClusterUpdate.decode(reader, reader.uint32());
+ break;
+ case 5:
+ message.name = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateClusterRequest message.
+ * @function verify
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateClusterRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ if (!$util.isString(message.zone))
+ return "zone: string expected";
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ if (!$util.isString(message.clusterId))
+ return "clusterId: string expected";
+ if (message.update != null && message.hasOwnProperty("update")) {
+ var error = $root.google.container.v1.ClusterUpdate.verify(message.update);
if (error)
- return "masterAuth." + error;
+ return "update." + error;
}
- if (message.loggingService != null && message.hasOwnProperty("loggingService"))
- if (!$util.isString(message.loggingService))
- return "loggingService: string expected";
- if (message.monitoringService != null && message.hasOwnProperty("monitoringService"))
- if (!$util.isString(message.monitoringService))
- return "monitoringService: string expected";
- if (message.network != null && message.hasOwnProperty("network"))
- if (!$util.isString(message.network))
- return "network: string expected";
- if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr"))
- if (!$util.isString(message.clusterIpv4Cidr))
- return "clusterIpv4Cidr: string expected";
- if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) {
- var error = $root.google.container.v1.AddonsConfig.verify(message.addonsConfig);
- if (error)
- return "addonsConfig." + error;
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest
+ */
+ UpdateClusterRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.UpdateClusterRequest)
+ return object;
+ var message = new $root.google.container.v1.UpdateClusterRequest();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.zone != null)
+ message.zone = String(object.zone);
+ if (object.clusterId != null)
+ message.clusterId = String(object.clusterId);
+ if (object.update != null) {
+ if (typeof object.update !== "object")
+ throw TypeError(".google.container.v1.UpdateClusterRequest.update: object expected");
+ message.update = $root.google.container.v1.ClusterUpdate.fromObject(object.update);
}
- if (message.subnetwork != null && message.hasOwnProperty("subnetwork"))
- if (!$util.isString(message.subnetwork))
- return "subnetwork: string expected";
- if (message.nodePools != null && message.hasOwnProperty("nodePools")) {
- if (!Array.isArray(message.nodePools))
- return "nodePools: array expected";
- for (var i = 0; i < message.nodePools.length; ++i) {
- var error = $root.google.container.v1.NodePool.verify(message.nodePools[i]);
- if (error)
- return "nodePools." + error;
- }
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @static
+ * @param {google.container.v1.UpdateClusterRequest} message UpdateClusterRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateClusterRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.zone = "";
+ object.clusterId = "";
+ object.update = null;
+ object.name = "";
}
- if (message.locations != null && message.hasOwnProperty("locations")) {
- if (!Array.isArray(message.locations))
- return "locations: array expected";
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ object.projectId = message.projectId;
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ object.zone = message.zone;
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ object.clusterId = message.clusterId;
+ if (message.update != null && message.hasOwnProperty("update"))
+ object.update = $root.google.container.v1.ClusterUpdate.toObject(message.update, options);
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateClusterRequest to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.UpdateClusterRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateClusterRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return UpdateClusterRequest;
+ })();
+
+ v1.UpdateNodePoolRequest = (function() {
+
+ /**
+ * Properties of an UpdateNodePoolRequest.
+ * @memberof google.container.v1
+ * @interface IUpdateNodePoolRequest
+ * @property {string|null} [projectId] UpdateNodePoolRequest projectId
+ * @property {string|null} [zone] UpdateNodePoolRequest zone
+ * @property {string|null} [clusterId] UpdateNodePoolRequest clusterId
+ * @property {string|null} [nodePoolId] UpdateNodePoolRequest nodePoolId
+ * @property {string|null} [nodeVersion] UpdateNodePoolRequest nodeVersion
+ * @property {string|null} [imageType] UpdateNodePoolRequest imageType
+ * @property {string|null} [name] UpdateNodePoolRequest name
+ * @property {Array.|null} [locations] UpdateNodePoolRequest locations
+ * @property {google.container.v1.IWorkloadMetadataConfig|null} [workloadMetadataConfig] UpdateNodePoolRequest workloadMetadataConfig
+ * @property {google.container.v1.NodePool.IUpgradeSettings|null} [upgradeSettings] UpdateNodePoolRequest upgradeSettings
+ */
+
+ /**
+ * Constructs a new UpdateNodePoolRequest.
+ * @memberof google.container.v1
+ * @classdesc Represents an UpdateNodePoolRequest.
+ * @implements IUpdateNodePoolRequest
+ * @constructor
+ * @param {google.container.v1.IUpdateNodePoolRequest=} [properties] Properties to set
+ */
+ function UpdateNodePoolRequest(properties) {
+ this.locations = [];
+ 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]];
+ }
+
+ /**
+ * UpdateNodePoolRequest projectId.
+ * @member {string} projectId
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @instance
+ */
+ UpdateNodePoolRequest.prototype.projectId = "";
+
+ /**
+ * UpdateNodePoolRequest zone.
+ * @member {string} zone
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @instance
+ */
+ UpdateNodePoolRequest.prototype.zone = "";
+
+ /**
+ * UpdateNodePoolRequest clusterId.
+ * @member {string} clusterId
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @instance
+ */
+ UpdateNodePoolRequest.prototype.clusterId = "";
+
+ /**
+ * UpdateNodePoolRequest nodePoolId.
+ * @member {string} nodePoolId
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @instance
+ */
+ UpdateNodePoolRequest.prototype.nodePoolId = "";
+
+ /**
+ * UpdateNodePoolRequest nodeVersion.
+ * @member {string} nodeVersion
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @instance
+ */
+ UpdateNodePoolRequest.prototype.nodeVersion = "";
+
+ /**
+ * UpdateNodePoolRequest imageType.
+ * @member {string} imageType
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @instance
+ */
+ UpdateNodePoolRequest.prototype.imageType = "";
+
+ /**
+ * UpdateNodePoolRequest name.
+ * @member {string} name
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @instance
+ */
+ UpdateNodePoolRequest.prototype.name = "";
+
+ /**
+ * UpdateNodePoolRequest locations.
+ * @member {Array.} locations
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @instance
+ */
+ UpdateNodePoolRequest.prototype.locations = $util.emptyArray;
+
+ /**
+ * UpdateNodePoolRequest workloadMetadataConfig.
+ * @member {google.container.v1.IWorkloadMetadataConfig|null|undefined} workloadMetadataConfig
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @instance
+ */
+ UpdateNodePoolRequest.prototype.workloadMetadataConfig = null;
+
+ /**
+ * UpdateNodePoolRequest upgradeSettings.
+ * @member {google.container.v1.NodePool.IUpgradeSettings|null|undefined} upgradeSettings
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @instance
+ */
+ UpdateNodePoolRequest.prototype.upgradeSettings = null;
+
+ /**
+ * Creates a new UpdateNodePoolRequest instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @static
+ * @param {google.container.v1.IUpdateNodePoolRequest=} [properties] Properties to set
+ * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest instance
+ */
+ UpdateNodePoolRequest.create = function create(properties) {
+ return new UpdateNodePoolRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateNodePoolRequest message. Does not implicitly {@link google.container.v1.UpdateNodePoolRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @static
+ * @param {google.container.v1.IUpdateNodePoolRequest} message UpdateNodePoolRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateNodePoolRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
+ if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
+ if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId);
+ if (message.nodeVersion != null && Object.hasOwnProperty.call(message, "nodeVersion"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeVersion);
+ if (message.imageType != null && Object.hasOwnProperty.call(message, "imageType"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.imageType);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.name);
+ if (message.locations != null && message.locations.length)
for (var i = 0; i < message.locations.length; ++i)
- if (!$util.isString(message.locations[i]))
- return "locations: string[] expected";
- }
- if (message.enableKubernetesAlpha != null && message.hasOwnProperty("enableKubernetesAlpha"))
- if (typeof message.enableKubernetesAlpha !== "boolean")
- return "enableKubernetesAlpha: boolean expected";
- if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) {
- if (!$util.isObject(message.resourceLabels))
- return "resourceLabels: object expected";
- var key = Object.keys(message.resourceLabels);
- for (var i = 0; i < key.length; ++i)
- if (!$util.isString(message.resourceLabels[key[i]]))
- return "resourceLabels: string{k:string} expected";
- }
- if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint"))
- if (!$util.isString(message.labelFingerprint))
- return "labelFingerprint: string expected";
- if (message.legacyAbac != null && message.hasOwnProperty("legacyAbac")) {
- var error = $root.google.container.v1.LegacyAbac.verify(message.legacyAbac);
- if (error)
- return "legacyAbac." + error;
- }
- if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) {
- var error = $root.google.container.v1.NetworkPolicy.verify(message.networkPolicy);
- if (error)
- return "networkPolicy." + error;
- }
- if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) {
- var error = $root.google.container.v1.IPAllocationPolicy.verify(message.ipAllocationPolicy);
- if (error)
- return "ipAllocationPolicy." + error;
- }
- if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig")) {
- var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.verify(message.masterAuthorizedNetworksConfig);
- if (error)
- return "masterAuthorizedNetworksConfig." + error;
- }
- if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) {
- var error = $root.google.container.v1.MaintenancePolicy.verify(message.maintenancePolicy);
- if (error)
- return "maintenancePolicy." + error;
- }
- if (message.binaryAuthorization != null && message.hasOwnProperty("binaryAuthorization")) {
- var error = $root.google.container.v1.BinaryAuthorization.verify(message.binaryAuthorization);
- if (error)
- return "binaryAuthorization." + error;
- }
- if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) {
- var error = $root.google.container.v1.ClusterAutoscaling.verify(message.autoscaling);
- if (error)
- return "autoscaling." + error;
- }
- if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) {
- var error = $root.google.container.v1.NetworkConfig.verify(message.networkConfig);
- if (error)
- return "networkConfig." + error;
- }
- if (message.defaultMaxPodsConstraint != null && message.hasOwnProperty("defaultMaxPodsConstraint")) {
- var error = $root.google.container.v1.MaxPodsConstraint.verify(message.defaultMaxPodsConstraint);
- if (error)
- return "defaultMaxPodsConstraint." + error;
- }
- if (message.resourceUsageExportConfig != null && message.hasOwnProperty("resourceUsageExportConfig")) {
- var error = $root.google.container.v1.ResourceUsageExportConfig.verify(message.resourceUsageExportConfig);
- if (error)
- return "resourceUsageExportConfig." + error;
- }
- if (message.authenticatorGroupsConfig != null && message.hasOwnProperty("authenticatorGroupsConfig")) {
- var error = $root.google.container.v1.AuthenticatorGroupsConfig.verify(message.authenticatorGroupsConfig);
- if (error)
- return "authenticatorGroupsConfig." + error;
- }
- if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) {
- var error = $root.google.container.v1.PrivateClusterConfig.verify(message.privateClusterConfig);
- if (error)
- return "privateClusterConfig." + error;
- }
- if (message.databaseEncryption != null && message.hasOwnProperty("databaseEncryption")) {
- var error = $root.google.container.v1.DatabaseEncryption.verify(message.databaseEncryption);
- if (error)
- return "databaseEncryption." + error;
- }
- if (message.verticalPodAutoscaling != null && message.hasOwnProperty("verticalPodAutoscaling")) {
- var error = $root.google.container.v1.VerticalPodAutoscaling.verify(message.verticalPodAutoscaling);
- if (error)
- return "verticalPodAutoscaling." + error;
- }
- if (message.selfLink != null && message.hasOwnProperty("selfLink"))
- if (!$util.isString(message.selfLink))
- return "selfLink: string expected";
- if (message.zone != null && message.hasOwnProperty("zone"))
- if (!$util.isString(message.zone))
- return "zone: string expected";
- if (message.endpoint != null && message.hasOwnProperty("endpoint"))
- if (!$util.isString(message.endpoint))
- return "endpoint: string expected";
- if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion"))
- if (!$util.isString(message.initialClusterVersion))
- return "initialClusterVersion: string expected";
- if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion"))
- if (!$util.isString(message.currentMasterVersion))
- return "currentMasterVersion: string expected";
- if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion"))
- if (!$util.isString(message.currentNodeVersion))
- return "currentNodeVersion: string expected";
- if (message.createTime != null && message.hasOwnProperty("createTime"))
- if (!$util.isString(message.createTime))
- return "createTime: string expected";
- if (message.status != null && message.hasOwnProperty("status"))
- switch (message.status) {
- default:
- return "status: enum value expected";
- case 0:
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.locations[i]);
+ if (message.workloadMetadataConfig != null && Object.hasOwnProperty.call(message, "workloadMetadataConfig"))
+ $root.google.container.v1.WorkloadMetadataConfig.encode(message.workloadMetadataConfig, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
+ if (message.upgradeSettings != null && Object.hasOwnProperty.call(message, "upgradeSettings"))
+ $root.google.container.v1.NodePool.UpgradeSettings.encode(message.upgradeSettings, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateNodePoolRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @static
+ * @param {google.container.v1.IUpdateNodePoolRequest} message UpdateNodePoolRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateNodePoolRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateNodePoolRequest.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.UpdateNodePoolRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
case 1:
+ message.projectId = reader.string();
+ break;
case 2:
+ message.zone = reader.string();
+ break;
case 3:
+ message.clusterId = reader.string();
+ break;
case 4:
+ message.nodePoolId = reader.string();
+ break;
case 5:
+ message.nodeVersion = reader.string();
+ break;
case 6:
+ message.imageType = reader.string();
+ break;
+ case 8:
+ message.name = reader.string();
+ break;
+ case 13:
+ if (!(message.locations && message.locations.length))
+ message.locations = [];
+ message.locations.push(reader.string());
+ break;
+ case 14:
+ message.workloadMetadataConfig = $root.google.container.v1.WorkloadMetadataConfig.decode(reader, reader.uint32());
+ break;
+ case 15:
+ message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.decode(reader, reader.uint32());
+ break;
+ default:
+ reader.skipType(tag & 7);
break;
}
- if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
- if (!$util.isString(message.statusMessage))
- return "statusMessage: string expected";
- if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize"))
- if (!$util.isInteger(message.nodeIpv4CidrSize))
- return "nodeIpv4CidrSize: integer expected";
- if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr"))
- if (!$util.isString(message.servicesIpv4Cidr))
- return "servicesIpv4Cidr: string expected";
- if (message.instanceGroupUrls != null && message.hasOwnProperty("instanceGroupUrls")) {
- if (!Array.isArray(message.instanceGroupUrls))
- return "instanceGroupUrls: array expected";
- for (var i = 0; i < message.instanceGroupUrls.length; ++i)
- if (!$util.isString(message.instanceGroupUrls[i]))
- return "instanceGroupUrls: string[] expected";
}
- if (message.currentNodeCount != null && message.hasOwnProperty("currentNodeCount"))
- if (!$util.isInteger(message.currentNodeCount))
- return "currentNodeCount: integer expected";
- if (message.expireTime != null && message.hasOwnProperty("expireTime"))
- if (!$util.isString(message.expireTime))
- return "expireTime: string expected";
- if (message.location != null && message.hasOwnProperty("location"))
- if (!$util.isString(message.location))
- return "location: string expected";
- if (message.enableTpu != null && message.hasOwnProperty("enableTpu"))
- if (typeof message.enableTpu !== "boolean")
- return "enableTpu: boolean expected";
- if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock"))
- if (!$util.isString(message.tpuIpv4CidrBlock))
- return "tpuIpv4CidrBlock: string expected";
- if (message.conditions != null && message.hasOwnProperty("conditions")) {
- if (!Array.isArray(message.conditions))
- return "conditions: array expected";
- for (var i = 0; i < message.conditions.length; ++i) {
- var error = $root.google.container.v1.StatusCondition.verify(message.conditions[i]);
- if (error)
- return "conditions." + error;
- }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateNodePoolRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateNodePoolRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateNodePoolRequest message.
+ * @function verify
+ * @memberof google.container.v1.UpdateNodePoolRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateNodePoolRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ if (!$util.isString(message.zone))
+ return "zone: string expected";
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ if (!$util.isString(message.clusterId))
+ return "clusterId: string expected";
+ if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId"))
+ if (!$util.isString(message.nodePoolId))
+ return "nodePoolId: string expected";
+ if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion"))
+ if (!$util.isString(message.nodeVersion))
+ return "nodeVersion: string expected";
+ if (message.imageType != null && message.hasOwnProperty("imageType"))
+ if (!$util.isString(message.imageType))
+ return "imageType: string expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.locations != null && message.hasOwnProperty("locations")) {
+ if (!Array.isArray(message.locations))
+ return "locations: array expected";
+ for (var i = 0; i < message.locations.length; ++i)
+ if (!$util.isString(message.locations[i]))
+ return "locations: string[] expected";
+ }
+ if (message.workloadMetadataConfig != null && message.hasOwnProperty("workloadMetadataConfig")) {
+ var error = $root.google.container.v1.WorkloadMetadataConfig.verify(message.workloadMetadataConfig);
+ if (error)
+ return "workloadMetadataConfig." + error;
+ }
+ if (message.upgradeSettings != null && message.hasOwnProperty("upgradeSettings")) {
+ var error = $root.google.container.v1.NodePool.UpgradeSettings.verify(message.upgradeSettings);
+ if (error)
+ return "upgradeSettings." + error;
}
return null;
};
/**
- * Creates a Cluster message from a plain object. Also converts values to their respective internal types.
+ * Creates an UpdateNodePoolRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.Cluster
+ * @memberof google.container.v1.UpdateNodePoolRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.Cluster} Cluster
+ * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest
*/
- Cluster.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.Cluster)
+ UpdateNodePoolRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.UpdateNodePoolRequest)
return object;
- var message = new $root.google.container.v1.Cluster();
- if (object.name != null)
- message.name = String(object.name);
- if (object.description != null)
- message.description = String(object.description);
- if (object.initialNodeCount != null)
- message.initialNodeCount = object.initialNodeCount | 0;
- if (object.nodeConfig != null) {
- if (typeof object.nodeConfig !== "object")
- throw TypeError(".google.container.v1.Cluster.nodeConfig: object expected");
- message.nodeConfig = $root.google.container.v1.NodeConfig.fromObject(object.nodeConfig);
- }
- if (object.masterAuth != null) {
- if (typeof object.masterAuth !== "object")
- throw TypeError(".google.container.v1.Cluster.masterAuth: object expected");
- message.masterAuth = $root.google.container.v1.MasterAuth.fromObject(object.masterAuth);
- }
- if (object.loggingService != null)
- message.loggingService = String(object.loggingService);
- if (object.monitoringService != null)
- message.monitoringService = String(object.monitoringService);
- if (object.network != null)
- message.network = String(object.network);
- if (object.clusterIpv4Cidr != null)
- message.clusterIpv4Cidr = String(object.clusterIpv4Cidr);
- if (object.addonsConfig != null) {
- if (typeof object.addonsConfig !== "object")
- throw TypeError(".google.container.v1.Cluster.addonsConfig: object expected");
- message.addonsConfig = $root.google.container.v1.AddonsConfig.fromObject(object.addonsConfig);
- }
- if (object.subnetwork != null)
- message.subnetwork = String(object.subnetwork);
- if (object.nodePools) {
- if (!Array.isArray(object.nodePools))
- throw TypeError(".google.container.v1.Cluster.nodePools: array expected");
- message.nodePools = [];
- for (var i = 0; i < object.nodePools.length; ++i) {
- if (typeof object.nodePools[i] !== "object")
- throw TypeError(".google.container.v1.Cluster.nodePools: object expected");
- message.nodePools[i] = $root.google.container.v1.NodePool.fromObject(object.nodePools[i]);
- }
- }
- if (object.locations) {
- if (!Array.isArray(object.locations))
- throw TypeError(".google.container.v1.Cluster.locations: array expected");
- message.locations = [];
- for (var i = 0; i < object.locations.length; ++i)
- message.locations[i] = String(object.locations[i]);
- }
- if (object.enableKubernetesAlpha != null)
- message.enableKubernetesAlpha = Boolean(object.enableKubernetesAlpha);
- if (object.resourceLabels) {
- if (typeof object.resourceLabels !== "object")
- throw TypeError(".google.container.v1.Cluster.resourceLabels: object expected");
- message.resourceLabels = {};
- for (var keys = Object.keys(object.resourceLabels), i = 0; i < keys.length; ++i)
- message.resourceLabels[keys[i]] = String(object.resourceLabels[keys[i]]);
- }
- if (object.labelFingerprint != null)
- message.labelFingerprint = String(object.labelFingerprint);
- if (object.legacyAbac != null) {
- if (typeof object.legacyAbac !== "object")
- throw TypeError(".google.container.v1.Cluster.legacyAbac: object expected");
- message.legacyAbac = $root.google.container.v1.LegacyAbac.fromObject(object.legacyAbac);
- }
- if (object.networkPolicy != null) {
- if (typeof object.networkPolicy !== "object")
- throw TypeError(".google.container.v1.Cluster.networkPolicy: object expected");
- message.networkPolicy = $root.google.container.v1.NetworkPolicy.fromObject(object.networkPolicy);
- }
- if (object.ipAllocationPolicy != null) {
- if (typeof object.ipAllocationPolicy !== "object")
- throw TypeError(".google.container.v1.Cluster.ipAllocationPolicy: object expected");
- message.ipAllocationPolicy = $root.google.container.v1.IPAllocationPolicy.fromObject(object.ipAllocationPolicy);
- }
- if (object.masterAuthorizedNetworksConfig != null) {
- if (typeof object.masterAuthorizedNetworksConfig !== "object")
- throw TypeError(".google.container.v1.Cluster.masterAuthorizedNetworksConfig: object expected");
- message.masterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.fromObject(object.masterAuthorizedNetworksConfig);
- }
- if (object.maintenancePolicy != null) {
- if (typeof object.maintenancePolicy !== "object")
- throw TypeError(".google.container.v1.Cluster.maintenancePolicy: object expected");
- message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.fromObject(object.maintenancePolicy);
- }
- if (object.binaryAuthorization != null) {
- if (typeof object.binaryAuthorization !== "object")
- throw TypeError(".google.container.v1.Cluster.binaryAuthorization: object expected");
- message.binaryAuthorization = $root.google.container.v1.BinaryAuthorization.fromObject(object.binaryAuthorization);
- }
- if (object.autoscaling != null) {
- if (typeof object.autoscaling !== "object")
- throw TypeError(".google.container.v1.Cluster.autoscaling: object expected");
- message.autoscaling = $root.google.container.v1.ClusterAutoscaling.fromObject(object.autoscaling);
- }
- if (object.networkConfig != null) {
- if (typeof object.networkConfig !== "object")
- throw TypeError(".google.container.v1.Cluster.networkConfig: object expected");
- message.networkConfig = $root.google.container.v1.NetworkConfig.fromObject(object.networkConfig);
- }
- if (object.defaultMaxPodsConstraint != null) {
- if (typeof object.defaultMaxPodsConstraint !== "object")
- throw TypeError(".google.container.v1.Cluster.defaultMaxPodsConstraint: object expected");
- message.defaultMaxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.fromObject(object.defaultMaxPodsConstraint);
- }
- if (object.resourceUsageExportConfig != null) {
- if (typeof object.resourceUsageExportConfig !== "object")
- throw TypeError(".google.container.v1.Cluster.resourceUsageExportConfig: object expected");
- message.resourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.fromObject(object.resourceUsageExportConfig);
- }
- if (object.authenticatorGroupsConfig != null) {
- if (typeof object.authenticatorGroupsConfig !== "object")
- throw TypeError(".google.container.v1.Cluster.authenticatorGroupsConfig: object expected");
- message.authenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.fromObject(object.authenticatorGroupsConfig);
- }
- if (object.privateClusterConfig != null) {
- if (typeof object.privateClusterConfig !== "object")
- throw TypeError(".google.container.v1.Cluster.privateClusterConfig: object expected");
- message.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.fromObject(object.privateClusterConfig);
- }
- if (object.databaseEncryption != null) {
- if (typeof object.databaseEncryption !== "object")
- throw TypeError(".google.container.v1.Cluster.databaseEncryption: object expected");
- message.databaseEncryption = $root.google.container.v1.DatabaseEncryption.fromObject(object.databaseEncryption);
- }
- if (object.verticalPodAutoscaling != null) {
- if (typeof object.verticalPodAutoscaling !== "object")
- throw TypeError(".google.container.v1.Cluster.verticalPodAutoscaling: object expected");
- message.verticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.fromObject(object.verticalPodAutoscaling);
- }
- if (object.selfLink != null)
- message.selfLink = String(object.selfLink);
+ var message = new $root.google.container.v1.UpdateNodePoolRequest();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
if (object.zone != null)
message.zone = String(object.zone);
- if (object.endpoint != null)
- message.endpoint = String(object.endpoint);
- if (object.initialClusterVersion != null)
- message.initialClusterVersion = String(object.initialClusterVersion);
- if (object.currentMasterVersion != null)
- message.currentMasterVersion = String(object.currentMasterVersion);
- if (object.currentNodeVersion != null)
- message.currentNodeVersion = String(object.currentNodeVersion);
- if (object.createTime != null)
- message.createTime = String(object.createTime);
- switch (object.status) {
- case "STATUS_UNSPECIFIED":
- case 0:
- message.status = 0;
- break;
- case "PROVISIONING":
- case 1:
- message.status = 1;
- break;
- case "RUNNING":
- case 2:
- message.status = 2;
- break;
- case "RECONCILING":
- case 3:
- message.status = 3;
- break;
- case "STOPPING":
- case 4:
- message.status = 4;
- break;
- case "ERROR":
- case 5:
- message.status = 5;
- break;
- case "DEGRADED":
- case 6:
- message.status = 6;
- break;
- }
- if (object.statusMessage != null)
- message.statusMessage = String(object.statusMessage);
- if (object.nodeIpv4CidrSize != null)
- message.nodeIpv4CidrSize = object.nodeIpv4CidrSize | 0;
- if (object.servicesIpv4Cidr != null)
- message.servicesIpv4Cidr = String(object.servicesIpv4Cidr);
- if (object.instanceGroupUrls) {
- if (!Array.isArray(object.instanceGroupUrls))
- throw TypeError(".google.container.v1.Cluster.instanceGroupUrls: array expected");
- message.instanceGroupUrls = [];
- for (var i = 0; i < object.instanceGroupUrls.length; ++i)
- message.instanceGroupUrls[i] = String(object.instanceGroupUrls[i]);
- }
- if (object.currentNodeCount != null)
- message.currentNodeCount = object.currentNodeCount | 0;
- if (object.expireTime != null)
- message.expireTime = String(object.expireTime);
- if (object.location != null)
- message.location = String(object.location);
- if (object.enableTpu != null)
- message.enableTpu = Boolean(object.enableTpu);
- if (object.tpuIpv4CidrBlock != null)
- message.tpuIpv4CidrBlock = String(object.tpuIpv4CidrBlock);
- if (object.conditions) {
- if (!Array.isArray(object.conditions))
- throw TypeError(".google.container.v1.Cluster.conditions: array expected");
- message.conditions = [];
- for (var i = 0; i < object.conditions.length; ++i) {
- if (typeof object.conditions[i] !== "object")
- throw TypeError(".google.container.v1.Cluster.conditions: object expected");
- message.conditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.conditions[i]);
- }
+ if (object.clusterId != null)
+ message.clusterId = String(object.clusterId);
+ if (object.nodePoolId != null)
+ message.nodePoolId = String(object.nodePoolId);
+ if (object.nodeVersion != null)
+ message.nodeVersion = String(object.nodeVersion);
+ if (object.imageType != null)
+ message.imageType = String(object.imageType);
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.locations) {
+ if (!Array.isArray(object.locations))
+ throw TypeError(".google.container.v1.UpdateNodePoolRequest.locations: array expected");
+ message.locations = [];
+ for (var i = 0; i < object.locations.length; ++i)
+ message.locations[i] = String(object.locations[i]);
+ }
+ if (object.workloadMetadataConfig != null) {
+ if (typeof object.workloadMetadataConfig !== "object")
+ throw TypeError(".google.container.v1.UpdateNodePoolRequest.workloadMetadataConfig: object expected");
+ message.workloadMetadataConfig = $root.google.container.v1.WorkloadMetadataConfig.fromObject(object.workloadMetadataConfig);
+ }
+ if (object.upgradeSettings != null) {
+ if (typeof object.upgradeSettings !== "object")
+ throw TypeError(".google.container.v1.UpdateNodePoolRequest.upgradeSettings: object expected");
+ message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.fromObject(object.upgradeSettings);
}
return message;
};
/**
- * Creates a plain object from a Cluster message. Also converts values to other types if specified.
+ * Creates a plain object from an UpdateNodePoolRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.Cluster
+ * @memberof google.container.v1.UpdateNodePoolRequest
* @static
- * @param {google.container.v1.Cluster} message Cluster
+ * @param {google.container.v1.UpdateNodePoolRequest} message UpdateNodePoolRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- Cluster.toObject = function toObject(message, options) {
+ UpdateNodePoolRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.arrays || options.defaults) {
- object.nodePools = [];
+ if (options.arrays || options.defaults)
object.locations = [];
- object.instanceGroupUrls = [];
- object.conditions = [];
- }
- if (options.objects || options.defaults)
- object.resourceLabels = {};
if (options.defaults) {
- object.name = "";
- object.description = "";
- object.initialNodeCount = 0;
- object.nodeConfig = null;
- object.masterAuth = null;
- object.loggingService = "";
- object.monitoringService = "";
- object.network = "";
- object.clusterIpv4Cidr = "";
- object.addonsConfig = null;
- object.subnetwork = "";
- object.enableKubernetesAlpha = false;
- object.labelFingerprint = "";
- object.legacyAbac = null;
- object.networkPolicy = null;
- object.ipAllocationPolicy = null;
- object.masterAuthorizedNetworksConfig = null;
- object.maintenancePolicy = null;
- object.binaryAuthorization = null;
- object.autoscaling = null;
- object.networkConfig = null;
- object.defaultMaxPodsConstraint = null;
- object.resourceUsageExportConfig = null;
- object.authenticatorGroupsConfig = null;
- object.privateClusterConfig = null;
- object.databaseEncryption = null;
- object.verticalPodAutoscaling = null;
- object.selfLink = "";
+ object.projectId = "";
object.zone = "";
- object.endpoint = "";
- object.initialClusterVersion = "";
- object.currentMasterVersion = "";
- object.currentNodeVersion = "";
- object.createTime = "";
- object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0;
- object.statusMessage = "";
- object.nodeIpv4CidrSize = 0;
- object.servicesIpv4Cidr = "";
- object.currentNodeCount = 0;
- object.expireTime = "";
- object.location = "";
- object.enableTpu = false;
- object.tpuIpv4CidrBlock = "";
+ object.clusterId = "";
+ object.nodePoolId = "";
+ object.nodeVersion = "";
+ object.imageType = "";
+ object.name = "";
+ object.workloadMetadataConfig = null;
+ object.upgradeSettings = null;
}
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ object.projectId = message.projectId;
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ object.zone = message.zone;
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ object.clusterId = message.clusterId;
+ if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId"))
+ object.nodePoolId = message.nodePoolId;
+ if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion"))
+ object.nodeVersion = message.nodeVersion;
+ if (message.imageType != null && message.hasOwnProperty("imageType"))
+ object.imageType = message.imageType;
if (message.name != null && message.hasOwnProperty("name"))
object.name = message.name;
- if (message.description != null && message.hasOwnProperty("description"))
- object.description = message.description;
- if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount"))
- object.initialNodeCount = message.initialNodeCount;
- if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig"))
- object.nodeConfig = $root.google.container.v1.NodeConfig.toObject(message.nodeConfig, options);
- if (message.masterAuth != null && message.hasOwnProperty("masterAuth"))
- object.masterAuth = $root.google.container.v1.MasterAuth.toObject(message.masterAuth, options);
- if (message.loggingService != null && message.hasOwnProperty("loggingService"))
- object.loggingService = message.loggingService;
- if (message.monitoringService != null && message.hasOwnProperty("monitoringService"))
- object.monitoringService = message.monitoringService;
- if (message.network != null && message.hasOwnProperty("network"))
- object.network = message.network;
- if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr"))
- object.clusterIpv4Cidr = message.clusterIpv4Cidr;
- if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig"))
- object.addonsConfig = $root.google.container.v1.AddonsConfig.toObject(message.addonsConfig, options);
- if (message.subnetwork != null && message.hasOwnProperty("subnetwork"))
- object.subnetwork = message.subnetwork;
- if (message.nodePools && message.nodePools.length) {
- object.nodePools = [];
- for (var j = 0; j < message.nodePools.length; ++j)
- object.nodePools[j] = $root.google.container.v1.NodePool.toObject(message.nodePools[j], options);
- }
if (message.locations && message.locations.length) {
object.locations = [];
for (var j = 0; j < message.locations.length; ++j)
object.locations[j] = message.locations[j];
}
- if (message.enableKubernetesAlpha != null && message.hasOwnProperty("enableKubernetesAlpha"))
- object.enableKubernetesAlpha = message.enableKubernetesAlpha;
- var keys2;
- if (message.resourceLabels && (keys2 = Object.keys(message.resourceLabels)).length) {
- object.resourceLabels = {};
- for (var j = 0; j < keys2.length; ++j)
- object.resourceLabels[keys2[j]] = message.resourceLabels[keys2[j]];
- }
- if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint"))
- object.labelFingerprint = message.labelFingerprint;
- if (message.legacyAbac != null && message.hasOwnProperty("legacyAbac"))
- object.legacyAbac = $root.google.container.v1.LegacyAbac.toObject(message.legacyAbac, options);
- if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy"))
- object.networkPolicy = $root.google.container.v1.NetworkPolicy.toObject(message.networkPolicy, options);
- if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy"))
- object.ipAllocationPolicy = $root.google.container.v1.IPAllocationPolicy.toObject(message.ipAllocationPolicy, options);
- if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig"))
- object.masterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.toObject(message.masterAuthorizedNetworksConfig, options);
- if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy"))
- object.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.toObject(message.maintenancePolicy, options);
- if (message.binaryAuthorization != null && message.hasOwnProperty("binaryAuthorization"))
- object.binaryAuthorization = $root.google.container.v1.BinaryAuthorization.toObject(message.binaryAuthorization, options);
- if (message.autoscaling != null && message.hasOwnProperty("autoscaling"))
- object.autoscaling = $root.google.container.v1.ClusterAutoscaling.toObject(message.autoscaling, options);
- if (message.networkConfig != null && message.hasOwnProperty("networkConfig"))
- object.networkConfig = $root.google.container.v1.NetworkConfig.toObject(message.networkConfig, options);
- if (message.defaultMaxPodsConstraint != null && message.hasOwnProperty("defaultMaxPodsConstraint"))
- object.defaultMaxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.toObject(message.defaultMaxPodsConstraint, options);
- if (message.resourceUsageExportConfig != null && message.hasOwnProperty("resourceUsageExportConfig"))
- object.resourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.toObject(message.resourceUsageExportConfig, options);
- if (message.authenticatorGroupsConfig != null && message.hasOwnProperty("authenticatorGroupsConfig"))
- object.authenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.toObject(message.authenticatorGroupsConfig, options);
- if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig"))
- object.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.toObject(message.privateClusterConfig, options);
- if (message.databaseEncryption != null && message.hasOwnProperty("databaseEncryption"))
- object.databaseEncryption = $root.google.container.v1.DatabaseEncryption.toObject(message.databaseEncryption, options);
- if (message.verticalPodAutoscaling != null && message.hasOwnProperty("verticalPodAutoscaling"))
- object.verticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.toObject(message.verticalPodAutoscaling, options);
- if (message.selfLink != null && message.hasOwnProperty("selfLink"))
- object.selfLink = message.selfLink;
- if (message.zone != null && message.hasOwnProperty("zone"))
- object.zone = message.zone;
- if (message.endpoint != null && message.hasOwnProperty("endpoint"))
- object.endpoint = message.endpoint;
- if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion"))
- object.initialClusterVersion = message.initialClusterVersion;
- if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion"))
- object.currentMasterVersion = message.currentMasterVersion;
- if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion"))
- object.currentNodeVersion = message.currentNodeVersion;
- if (message.createTime != null && message.hasOwnProperty("createTime"))
- object.createTime = message.createTime;
- if (message.status != null && message.hasOwnProperty("status"))
- object.status = options.enums === String ? $root.google.container.v1.Cluster.Status[message.status] : message.status;
- if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
- object.statusMessage = message.statusMessage;
- if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize"))
- object.nodeIpv4CidrSize = message.nodeIpv4CidrSize;
- if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr"))
- object.servicesIpv4Cidr = message.servicesIpv4Cidr;
- if (message.instanceGroupUrls && message.instanceGroupUrls.length) {
- object.instanceGroupUrls = [];
- for (var j = 0; j < message.instanceGroupUrls.length; ++j)
- object.instanceGroupUrls[j] = message.instanceGroupUrls[j];
- }
- if (message.currentNodeCount != null && message.hasOwnProperty("currentNodeCount"))
- object.currentNodeCount = message.currentNodeCount;
- if (message.expireTime != null && message.hasOwnProperty("expireTime"))
- object.expireTime = message.expireTime;
- if (message.location != null && message.hasOwnProperty("location"))
- object.location = message.location;
- if (message.enableTpu != null && message.hasOwnProperty("enableTpu"))
- object.enableTpu = message.enableTpu;
- if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock"))
- object.tpuIpv4CidrBlock = message.tpuIpv4CidrBlock;
- if (message.conditions && message.conditions.length) {
- object.conditions = [];
- for (var j = 0; j < message.conditions.length; ++j)
- object.conditions[j] = $root.google.container.v1.StatusCondition.toObject(message.conditions[j], options);
- }
+ if (message.workloadMetadataConfig != null && message.hasOwnProperty("workloadMetadataConfig"))
+ object.workloadMetadataConfig = $root.google.container.v1.WorkloadMetadataConfig.toObject(message.workloadMetadataConfig, options);
+ if (message.upgradeSettings != null && message.hasOwnProperty("upgradeSettings"))
+ object.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.toObject(message.upgradeSettings, options);
return object;
};
/**
- * Converts this Cluster to JSON.
+ * Converts this UpdateNodePoolRequest to JSON.
* @function toJSON
- * @memberof google.container.v1.Cluster
+ * @memberof google.container.v1.UpdateNodePoolRequest
* @instance
* @returns {Object.} JSON object
*/
- Cluster.prototype.toJSON = function toJSON() {
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
- };
-
- /**
- * Status enum.
- * @name google.container.v1.Cluster.Status
- * @enum {number}
- * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value
- * @property {number} PROVISIONING=1 PROVISIONING value
- * @property {number} RUNNING=2 RUNNING value
- * @property {number} RECONCILING=3 RECONCILING value
- * @property {number} STOPPING=4 STOPPING value
- * @property {number} ERROR=5 ERROR value
- * @property {number} DEGRADED=6 DEGRADED value
- */
- Cluster.Status = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "STATUS_UNSPECIFIED"] = 0;
- values[valuesById[1] = "PROVISIONING"] = 1;
- values[valuesById[2] = "RUNNING"] = 2;
- values[valuesById[3] = "RECONCILING"] = 3;
- values[valuesById[4] = "STOPPING"] = 4;
- values[valuesById[5] = "ERROR"] = 5;
- values[valuesById[6] = "DEGRADED"] = 6;
- return values;
- })();
-
- return Cluster;
- })();
-
- v1.ClusterUpdate = (function() {
-
- /**
- * Properties of a ClusterUpdate.
- * @memberof google.container.v1
- * @interface IClusterUpdate
- * @property {string|null} [desiredNodeVersion] ClusterUpdate desiredNodeVersion
- * @property {string|null} [desiredMonitoringService] ClusterUpdate desiredMonitoringService
- * @property {google.container.v1.IAddonsConfig|null} [desiredAddonsConfig] ClusterUpdate desiredAddonsConfig
- * @property {string|null} [desiredNodePoolId] ClusterUpdate desiredNodePoolId
- * @property {string|null} [desiredImageType] ClusterUpdate desiredImageType
- * @property {google.container.v1.IDatabaseEncryption|null} [desiredDatabaseEncryption] ClusterUpdate desiredDatabaseEncryption
- * @property {google.container.v1.INodePoolAutoscaling|null} [desiredNodePoolAutoscaling] ClusterUpdate desiredNodePoolAutoscaling
- * @property {Array.|null} [desiredLocations] ClusterUpdate desiredLocations
- * @property {google.container.v1.IMasterAuthorizedNetworksConfig|null} [desiredMasterAuthorizedNetworksConfig] ClusterUpdate desiredMasterAuthorizedNetworksConfig
- * @property {google.container.v1.IClusterAutoscaling|null} [desiredClusterAutoscaling] ClusterUpdate desiredClusterAutoscaling
- * @property {google.container.v1.IBinaryAuthorization|null} [desiredBinaryAuthorization] ClusterUpdate desiredBinaryAuthorization
- * @property {string|null} [desiredLoggingService] ClusterUpdate desiredLoggingService
- * @property {google.container.v1.IResourceUsageExportConfig|null} [desiredResourceUsageExportConfig] ClusterUpdate desiredResourceUsageExportConfig
- * @property {google.container.v1.IVerticalPodAutoscaling|null} [desiredVerticalPodAutoscaling] ClusterUpdate desiredVerticalPodAutoscaling
- * @property {google.container.v1.IIntraNodeVisibilityConfig|null} [desiredIntraNodeVisibilityConfig] ClusterUpdate desiredIntraNodeVisibilityConfig
- * @property {string|null} [desiredMasterVersion] ClusterUpdate desiredMasterVersion
- */
+ UpdateNodePoolRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return UpdateNodePoolRequest;
+ })();
+
+ v1.SetNodePoolAutoscalingRequest = (function() {
/**
- * Constructs a new ClusterUpdate.
+ * Properties of a SetNodePoolAutoscalingRequest.
* @memberof google.container.v1
- * @classdesc Represents a ClusterUpdate.
- * @implements IClusterUpdate
+ * @interface ISetNodePoolAutoscalingRequest
+ * @property {string|null} [projectId] SetNodePoolAutoscalingRequest projectId
+ * @property {string|null} [zone] SetNodePoolAutoscalingRequest zone
+ * @property {string|null} [clusterId] SetNodePoolAutoscalingRequest clusterId
+ * @property {string|null} [nodePoolId] SetNodePoolAutoscalingRequest nodePoolId
+ * @property {google.container.v1.INodePoolAutoscaling|null} [autoscaling] SetNodePoolAutoscalingRequest autoscaling
+ * @property {string|null} [name] SetNodePoolAutoscalingRequest name
+ */
+
+ /**
+ * Constructs a new SetNodePoolAutoscalingRequest.
+ * @memberof google.container.v1
+ * @classdesc Represents a SetNodePoolAutoscalingRequest.
+ * @implements ISetNodePoolAutoscalingRequest
* @constructor
- * @param {google.container.v1.IClusterUpdate=} [properties] Properties to set
+ * @param {google.container.v1.ISetNodePoolAutoscalingRequest=} [properties] Properties to set
*/
- function ClusterUpdate(properties) {
- this.desiredLocations = [];
+ function SetNodePoolAutoscalingRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -7462,273 +12182,429 @@
}
/**
- * ClusterUpdate desiredNodeVersion.
- * @member {string} desiredNodeVersion
- * @memberof google.container.v1.ClusterUpdate
+ * SetNodePoolAutoscalingRequest projectId.
+ * @member {string} projectId
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
* @instance
*/
- ClusterUpdate.prototype.desiredNodeVersion = "";
+ SetNodePoolAutoscalingRequest.prototype.projectId = "";
/**
- * ClusterUpdate desiredMonitoringService.
- * @member {string} desiredMonitoringService
- * @memberof google.container.v1.ClusterUpdate
+ * SetNodePoolAutoscalingRequest zone.
+ * @member {string} zone
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
* @instance
*/
- ClusterUpdate.prototype.desiredMonitoringService = "";
+ SetNodePoolAutoscalingRequest.prototype.zone = "";
/**
- * ClusterUpdate desiredAddonsConfig.
- * @member {google.container.v1.IAddonsConfig|null|undefined} desiredAddonsConfig
- * @memberof google.container.v1.ClusterUpdate
+ * SetNodePoolAutoscalingRequest clusterId.
+ * @member {string} clusterId
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
* @instance
*/
- ClusterUpdate.prototype.desiredAddonsConfig = null;
+ SetNodePoolAutoscalingRequest.prototype.clusterId = "";
/**
- * ClusterUpdate desiredNodePoolId.
- * @member {string} desiredNodePoolId
- * @memberof google.container.v1.ClusterUpdate
+ * SetNodePoolAutoscalingRequest nodePoolId.
+ * @member {string} nodePoolId
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
* @instance
*/
- ClusterUpdate.prototype.desiredNodePoolId = "";
+ SetNodePoolAutoscalingRequest.prototype.nodePoolId = "";
/**
- * ClusterUpdate desiredImageType.
- * @member {string} desiredImageType
- * @memberof google.container.v1.ClusterUpdate
+ * SetNodePoolAutoscalingRequest autoscaling.
+ * @member {google.container.v1.INodePoolAutoscaling|null|undefined} autoscaling
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
* @instance
*/
- ClusterUpdate.prototype.desiredImageType = "";
+ SetNodePoolAutoscalingRequest.prototype.autoscaling = null;
/**
- * ClusterUpdate desiredDatabaseEncryption.
- * @member {google.container.v1.IDatabaseEncryption|null|undefined} desiredDatabaseEncryption
- * @memberof google.container.v1.ClusterUpdate
+ * SetNodePoolAutoscalingRequest name.
+ * @member {string} name
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
* @instance
*/
- ClusterUpdate.prototype.desiredDatabaseEncryption = null;
+ SetNodePoolAutoscalingRequest.prototype.name = "";
/**
- * ClusterUpdate desiredNodePoolAutoscaling.
- * @member {google.container.v1.INodePoolAutoscaling|null|undefined} desiredNodePoolAutoscaling
- * @memberof google.container.v1.ClusterUpdate
- * @instance
+ * Creates a new SetNodePoolAutoscalingRequest instance using the specified properties.
+ * @function create
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @static
+ * @param {google.container.v1.ISetNodePoolAutoscalingRequest=} [properties] Properties to set
+ * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest instance
*/
- ClusterUpdate.prototype.desiredNodePoolAutoscaling = null;
+ SetNodePoolAutoscalingRequest.create = function create(properties) {
+ return new SetNodePoolAutoscalingRequest(properties);
+ };
+
+ /**
+ * Encodes the specified SetNodePoolAutoscalingRequest message. Does not implicitly {@link google.container.v1.SetNodePoolAutoscalingRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @static
+ * @param {google.container.v1.ISetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SetNodePoolAutoscalingRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
+ if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
+ if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId);
+ if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling"))
+ $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SetNodePoolAutoscalingRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolAutoscalingRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @static
+ * @param {google.container.v1.ISetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SetNodePoolAutoscalingRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SetNodePoolAutoscalingRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SetNodePoolAutoscalingRequest.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.SetNodePoolAutoscalingRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ message.projectId = reader.string();
+ break;
+ case 2:
+ message.zone = reader.string();
+ break;
+ case 3:
+ message.clusterId = reader.string();
+ break;
+ case 4:
+ message.nodePoolId = reader.string();
+ break;
+ case 5:
+ message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32());
+ break;
+ case 6:
+ message.name = reader.string();
+ break;
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SetNodePoolAutoscalingRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SetNodePoolAutoscalingRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SetNodePoolAutoscalingRequest message.
+ * @function verify
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SetNodePoolAutoscalingRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ if (!$util.isString(message.zone))
+ return "zone: string expected";
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ if (!$util.isString(message.clusterId))
+ return "clusterId: string expected";
+ if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId"))
+ if (!$util.isString(message.nodePoolId))
+ return "nodePoolId: string expected";
+ if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) {
+ var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.autoscaling);
+ if (error)
+ return "autoscaling." + error;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SetNodePoolAutoscalingRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest
+ */
+ SetNodePoolAutoscalingRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.SetNodePoolAutoscalingRequest)
+ return object;
+ var message = new $root.google.container.v1.SetNodePoolAutoscalingRequest();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.zone != null)
+ message.zone = String(object.zone);
+ if (object.clusterId != null)
+ message.clusterId = String(object.clusterId);
+ if (object.nodePoolId != null)
+ message.nodePoolId = String(object.nodePoolId);
+ if (object.autoscaling != null) {
+ if (typeof object.autoscaling !== "object")
+ throw TypeError(".google.container.v1.SetNodePoolAutoscalingRequest.autoscaling: object expected");
+ message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.autoscaling);
+ }
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
/**
- * ClusterUpdate desiredLocations.
- * @member {Array.} desiredLocations
- * @memberof google.container.v1.ClusterUpdate
- * @instance
+ * Creates a plain object from a SetNodePoolAutoscalingRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @static
+ * @param {google.container.v1.SetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
*/
- ClusterUpdate.prototype.desiredLocations = $util.emptyArray;
+ SetNodePoolAutoscalingRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.projectId = "";
+ object.zone = "";
+ object.clusterId = "";
+ object.nodePoolId = "";
+ object.autoscaling = null;
+ object.name = "";
+ }
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ object.projectId = message.projectId;
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ object.zone = message.zone;
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ object.clusterId = message.clusterId;
+ if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId"))
+ object.nodePoolId = message.nodePoolId;
+ if (message.autoscaling != null && message.hasOwnProperty("autoscaling"))
+ object.autoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.autoscaling, options);
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
/**
- * ClusterUpdate desiredMasterAuthorizedNetworksConfig.
- * @member {google.container.v1.IMasterAuthorizedNetworksConfig|null|undefined} desiredMasterAuthorizedNetworksConfig
- * @memberof google.container.v1.ClusterUpdate
+ * Converts this SetNodePoolAutoscalingRequest to JSON.
+ * @function toJSON
+ * @memberof google.container.v1.SetNodePoolAutoscalingRequest
* @instance
+ * @returns {Object.} JSON object
*/
- ClusterUpdate.prototype.desiredMasterAuthorizedNetworksConfig = null;
+ SetNodePoolAutoscalingRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ return SetNodePoolAutoscalingRequest;
+ })();
+
+ v1.SetLoggingServiceRequest = (function() {
/**
- * ClusterUpdate desiredClusterAutoscaling.
- * @member {google.container.v1.IClusterAutoscaling|null|undefined} desiredClusterAutoscaling
- * @memberof google.container.v1.ClusterUpdate
- * @instance
+ * Properties of a SetLoggingServiceRequest.
+ * @memberof google.container.v1
+ * @interface ISetLoggingServiceRequest
+ * @property {string|null} [projectId] SetLoggingServiceRequest projectId
+ * @property {string|null} [zone] SetLoggingServiceRequest zone
+ * @property {string|null} [clusterId] SetLoggingServiceRequest clusterId
+ * @property {string|null} [loggingService] SetLoggingServiceRequest loggingService
+ * @property {string|null} [name] SetLoggingServiceRequest name
*/
- ClusterUpdate.prototype.desiredClusterAutoscaling = null;
/**
- * ClusterUpdate desiredBinaryAuthorization.
- * @member {google.container.v1.IBinaryAuthorization|null|undefined} desiredBinaryAuthorization
- * @memberof google.container.v1.ClusterUpdate
- * @instance
+ * Constructs a new SetLoggingServiceRequest.
+ * @memberof google.container.v1
+ * @classdesc Represents a SetLoggingServiceRequest.
+ * @implements ISetLoggingServiceRequest
+ * @constructor
+ * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set
*/
- ClusterUpdate.prototype.desiredBinaryAuthorization = null;
+ function SetLoggingServiceRequest(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]];
+ }
/**
- * ClusterUpdate desiredLoggingService.
- * @member {string} desiredLoggingService
- * @memberof google.container.v1.ClusterUpdate
+ * SetLoggingServiceRequest projectId.
+ * @member {string} projectId
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @instance
*/
- ClusterUpdate.prototype.desiredLoggingService = "";
+ SetLoggingServiceRequest.prototype.projectId = "";
/**
- * ClusterUpdate desiredResourceUsageExportConfig.
- * @member {google.container.v1.IResourceUsageExportConfig|null|undefined} desiredResourceUsageExportConfig
- * @memberof google.container.v1.ClusterUpdate
+ * SetLoggingServiceRequest zone.
+ * @member {string} zone
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @instance
*/
- ClusterUpdate.prototype.desiredResourceUsageExportConfig = null;
+ SetLoggingServiceRequest.prototype.zone = "";
/**
- * ClusterUpdate desiredVerticalPodAutoscaling.
- * @member {google.container.v1.IVerticalPodAutoscaling|null|undefined} desiredVerticalPodAutoscaling
- * @memberof google.container.v1.ClusterUpdate
+ * SetLoggingServiceRequest clusterId.
+ * @member {string} clusterId
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @instance
*/
- ClusterUpdate.prototype.desiredVerticalPodAutoscaling = null;
+ SetLoggingServiceRequest.prototype.clusterId = "";
/**
- * ClusterUpdate desiredIntraNodeVisibilityConfig.
- * @member {google.container.v1.IIntraNodeVisibilityConfig|null|undefined} desiredIntraNodeVisibilityConfig
- * @memberof google.container.v1.ClusterUpdate
+ * SetLoggingServiceRequest loggingService.
+ * @member {string} loggingService
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @instance
*/
- ClusterUpdate.prototype.desiredIntraNodeVisibilityConfig = null;
+ SetLoggingServiceRequest.prototype.loggingService = "";
/**
- * ClusterUpdate desiredMasterVersion.
- * @member {string} desiredMasterVersion
- * @memberof google.container.v1.ClusterUpdate
+ * SetLoggingServiceRequest name.
+ * @member {string} name
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @instance
*/
- ClusterUpdate.prototype.desiredMasterVersion = "";
+ SetLoggingServiceRequest.prototype.name = "";
/**
- * Creates a new ClusterUpdate instance using the specified properties.
+ * Creates a new SetLoggingServiceRequest instance using the specified properties.
* @function create
- * @memberof google.container.v1.ClusterUpdate
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @static
- * @param {google.container.v1.IClusterUpdate=} [properties] Properties to set
- * @returns {google.container.v1.ClusterUpdate} ClusterUpdate instance
+ * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set
+ * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest instance
*/
- ClusterUpdate.create = function create(properties) {
- return new ClusterUpdate(properties);
+ SetLoggingServiceRequest.create = function create(properties) {
+ return new SetLoggingServiceRequest(properties);
};
/**
- * Encodes the specified ClusterUpdate message. Does not implicitly {@link google.container.v1.ClusterUpdate.verify|verify} messages.
+ * Encodes the specified SetLoggingServiceRequest message. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.ClusterUpdate
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @static
- * @param {google.container.v1.IClusterUpdate} message ClusterUpdate message or plain object to encode
+ * @param {google.container.v1.ISetLoggingServiceRequest} message SetLoggingServiceRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- ClusterUpdate.encode = function encode(message, writer) {
+ SetLoggingServiceRequest.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.desiredNodeVersion != null && Object.hasOwnProperty.call(message, "desiredNodeVersion"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.desiredNodeVersion);
- if (message.desiredMonitoringService != null && Object.hasOwnProperty.call(message, "desiredMonitoringService"))
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.desiredMonitoringService);
- if (message.desiredAddonsConfig != null && Object.hasOwnProperty.call(message, "desiredAddonsConfig"))
- $root.google.container.v1.AddonsConfig.encode(message.desiredAddonsConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
- if (message.desiredNodePoolId != null && Object.hasOwnProperty.call(message, "desiredNodePoolId"))
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.desiredNodePoolId);
- if (message.desiredImageType != null && Object.hasOwnProperty.call(message, "desiredImageType"))
- writer.uint32(/* id 8, wireType 2 =*/66).string(message.desiredImageType);
- if (message.desiredNodePoolAutoscaling != null && Object.hasOwnProperty.call(message, "desiredNodePoolAutoscaling"))
- $root.google.container.v1.NodePoolAutoscaling.encode(message.desiredNodePoolAutoscaling, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
- if (message.desiredLocations != null && message.desiredLocations.length)
- for (var i = 0; i < message.desiredLocations.length; ++i)
- writer.uint32(/* id 10, wireType 2 =*/82).string(message.desiredLocations[i]);
- if (message.desiredMasterAuthorizedNetworksConfig != null && Object.hasOwnProperty.call(message, "desiredMasterAuthorizedNetworksConfig"))
- $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.desiredMasterAuthorizedNetworksConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
- if (message.desiredClusterAutoscaling != null && Object.hasOwnProperty.call(message, "desiredClusterAutoscaling"))
- $root.google.container.v1.ClusterAutoscaling.encode(message.desiredClusterAutoscaling, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
- if (message.desiredBinaryAuthorization != null && Object.hasOwnProperty.call(message, "desiredBinaryAuthorization"))
- $root.google.container.v1.BinaryAuthorization.encode(message.desiredBinaryAuthorization, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
- if (message.desiredLoggingService != null && Object.hasOwnProperty.call(message, "desiredLoggingService"))
- writer.uint32(/* id 19, wireType 2 =*/154).string(message.desiredLoggingService);
- if (message.desiredResourceUsageExportConfig != null && Object.hasOwnProperty.call(message, "desiredResourceUsageExportConfig"))
- $root.google.container.v1.ResourceUsageExportConfig.encode(message.desiredResourceUsageExportConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
- if (message.desiredVerticalPodAutoscaling != null && Object.hasOwnProperty.call(message, "desiredVerticalPodAutoscaling"))
- $root.google.container.v1.VerticalPodAutoscaling.encode(message.desiredVerticalPodAutoscaling, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
- if (message.desiredIntraNodeVisibilityConfig != null && Object.hasOwnProperty.call(message, "desiredIntraNodeVisibilityConfig"))
- $root.google.container.v1.IntraNodeVisibilityConfig.encode(message.desiredIntraNodeVisibilityConfig, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
- if (message.desiredDatabaseEncryption != null && Object.hasOwnProperty.call(message, "desiredDatabaseEncryption"))
- $root.google.container.v1.DatabaseEncryption.encode(message.desiredDatabaseEncryption, writer.uint32(/* id 46, wireType 2 =*/370).fork()).ldelim();
- if (message.desiredMasterVersion != null && Object.hasOwnProperty.call(message, "desiredMasterVersion"))
- writer.uint32(/* id 100, wireType 2 =*/802).string(message.desiredMasterVersion);
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
+ if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
+ if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
+ if (message.loggingService != null && Object.hasOwnProperty.call(message, "loggingService"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.loggingService);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.name);
return writer;
};
/**
- * Encodes the specified ClusterUpdate message, length delimited. Does not implicitly {@link google.container.v1.ClusterUpdate.verify|verify} messages.
+ * Encodes the specified SetLoggingServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.ClusterUpdate
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @static
- * @param {google.container.v1.IClusterUpdate} message ClusterUpdate message or plain object to encode
+ * @param {google.container.v1.ISetLoggingServiceRequest} message SetLoggingServiceRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- ClusterUpdate.encodeDelimited = function encodeDelimited(message, writer) {
+ SetLoggingServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a ClusterUpdate message from the specified reader or buffer.
+ * Decodes a SetLoggingServiceRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.ClusterUpdate
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.ClusterUpdate} ClusterUpdate
+ * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- ClusterUpdate.decode = function decode(reader, length) {
+ SetLoggingServiceRequest.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.ClusterUpdate();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLoggingServiceRequest();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
- case 4:
- message.desiredNodeVersion = reader.string();
- break;
- case 5:
- message.desiredMonitoringService = reader.string();
- break;
- case 6:
- message.desiredAddonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32());
- break;
- case 7:
- message.desiredNodePoolId = reader.string();
- break;
- case 8:
- message.desiredImageType = reader.string();
- break;
- case 46:
- message.desiredDatabaseEncryption = $root.google.container.v1.DatabaseEncryption.decode(reader, reader.uint32());
- break;
- case 9:
- message.desiredNodePoolAutoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32());
- break;
- case 10:
- if (!(message.desiredLocations && message.desiredLocations.length))
- message.desiredLocations = [];
- message.desiredLocations.push(reader.string());
- break;
- case 12:
- message.desiredMasterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.decode(reader, reader.uint32());
- break;
- case 15:
- message.desiredClusterAutoscaling = $root.google.container.v1.ClusterAutoscaling.decode(reader, reader.uint32());
- break;
- case 16:
- message.desiredBinaryAuthorization = $root.google.container.v1.BinaryAuthorization.decode(reader, reader.uint32());
- break;
- case 19:
- message.desiredLoggingService = reader.string();
+ case 1:
+ message.projectId = reader.string();
break;
- case 21:
- message.desiredResourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.decode(reader, reader.uint32());
+ case 2:
+ message.zone = reader.string();
break;
- case 22:
- message.desiredVerticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.decode(reader, reader.uint32());
+ case 3:
+ message.clusterId = reader.string();
break;
- case 26:
- message.desiredIntraNodeVisibilityConfig = $root.google.container.v1.IntraNodeVisibilityConfig.decode(reader, reader.uint32());
+ case 4:
+ message.loggingService = reader.string();
break;
- case 100:
- message.desiredMasterVersion = reader.string();
+ case 5:
+ message.name = reader.string();
break;
default:
reader.skipType(tag & 7);
@@ -7739,300 +12615,144 @@
};
/**
- * Decodes a ClusterUpdate message from the specified reader or buffer, length delimited.
+ * Decodes a SetLoggingServiceRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.ClusterUpdate
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.ClusterUpdate} ClusterUpdate
+ * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- ClusterUpdate.decodeDelimited = function decodeDelimited(reader) {
+ SetLoggingServiceRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a ClusterUpdate message.
+ * Verifies a SetLoggingServiceRequest message.
* @function verify
- * @memberof google.container.v1.ClusterUpdate
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- ClusterUpdate.verify = function verify(message) {
+ SetLoggingServiceRequest.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion"))
- if (!$util.isString(message.desiredNodeVersion))
- return "desiredNodeVersion: string expected";
- if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService"))
- if (!$util.isString(message.desiredMonitoringService))
- return "desiredMonitoringService: string expected";
- if (message.desiredAddonsConfig != null && message.hasOwnProperty("desiredAddonsConfig")) {
- var error = $root.google.container.v1.AddonsConfig.verify(message.desiredAddonsConfig);
- if (error)
- return "desiredAddonsConfig." + error;
- }
- if (message.desiredNodePoolId != null && message.hasOwnProperty("desiredNodePoolId"))
- if (!$util.isString(message.desiredNodePoolId))
- return "desiredNodePoolId: string expected";
- if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType"))
- if (!$util.isString(message.desiredImageType))
- return "desiredImageType: string expected";
- if (message.desiredDatabaseEncryption != null && message.hasOwnProperty("desiredDatabaseEncryption")) {
- var error = $root.google.container.v1.DatabaseEncryption.verify(message.desiredDatabaseEncryption);
- if (error)
- return "desiredDatabaseEncryption." + error;
- }
- if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("desiredNodePoolAutoscaling")) {
- var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.desiredNodePoolAutoscaling);
- if (error)
- return "desiredNodePoolAutoscaling." + error;
- }
- if (message.desiredLocations != null && message.hasOwnProperty("desiredLocations")) {
- if (!Array.isArray(message.desiredLocations))
- return "desiredLocations: array expected";
- for (var i = 0; i < message.desiredLocations.length; ++i)
- if (!$util.isString(message.desiredLocations[i]))
- return "desiredLocations: string[] expected";
- }
- if (message.desiredMasterAuthorizedNetworksConfig != null && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig")) {
- var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.verify(message.desiredMasterAuthorizedNetworksConfig);
- if (error)
- return "desiredMasterAuthorizedNetworksConfig." + error;
- }
- if (message.desiredClusterAutoscaling != null && message.hasOwnProperty("desiredClusterAutoscaling")) {
- var error = $root.google.container.v1.ClusterAutoscaling.verify(message.desiredClusterAutoscaling);
- if (error)
- return "desiredClusterAutoscaling." + error;
- }
- if (message.desiredBinaryAuthorization != null && message.hasOwnProperty("desiredBinaryAuthorization")) {
- var error = $root.google.container.v1.BinaryAuthorization.verify(message.desiredBinaryAuthorization);
- if (error)
- return "desiredBinaryAuthorization." + error;
- }
- if (message.desiredLoggingService != null && message.hasOwnProperty("desiredLoggingService"))
- if (!$util.isString(message.desiredLoggingService))
- return "desiredLoggingService: string expected";
- if (message.desiredResourceUsageExportConfig != null && message.hasOwnProperty("desiredResourceUsageExportConfig")) {
- var error = $root.google.container.v1.ResourceUsageExportConfig.verify(message.desiredResourceUsageExportConfig);
- if (error)
- return "desiredResourceUsageExportConfig." + error;
- }
- if (message.desiredVerticalPodAutoscaling != null && message.hasOwnProperty("desiredVerticalPodAutoscaling")) {
- var error = $root.google.container.v1.VerticalPodAutoscaling.verify(message.desiredVerticalPodAutoscaling);
- if (error)
- return "desiredVerticalPodAutoscaling." + error;
- }
- if (message.desiredIntraNodeVisibilityConfig != null && message.hasOwnProperty("desiredIntraNodeVisibilityConfig")) {
- var error = $root.google.container.v1.IntraNodeVisibilityConfig.verify(message.desiredIntraNodeVisibilityConfig);
- if (error)
- return "desiredIntraNodeVisibilityConfig." + error;
- }
- if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion"))
- if (!$util.isString(message.desiredMasterVersion))
- return "desiredMasterVersion: string expected";
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ if (!$util.isString(message.zone))
+ return "zone: string expected";
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ if (!$util.isString(message.clusterId))
+ return "clusterId: string expected";
+ if (message.loggingService != null && message.hasOwnProperty("loggingService"))
+ if (!$util.isString(message.loggingService))
+ return "loggingService: string expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
return null;
};
/**
- * Creates a ClusterUpdate message from a plain object. Also converts values to their respective internal types.
+ * Creates a SetLoggingServiceRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.ClusterUpdate
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.ClusterUpdate} ClusterUpdate
+ * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest
*/
- ClusterUpdate.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.ClusterUpdate)
+ SetLoggingServiceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.SetLoggingServiceRequest)
return object;
- var message = new $root.google.container.v1.ClusterUpdate();
- if (object.desiredNodeVersion != null)
- message.desiredNodeVersion = String(object.desiredNodeVersion);
- if (object.desiredMonitoringService != null)
- message.desiredMonitoringService = String(object.desiredMonitoringService);
- if (object.desiredAddonsConfig != null) {
- if (typeof object.desiredAddonsConfig !== "object")
- throw TypeError(".google.container.v1.ClusterUpdate.desiredAddonsConfig: object expected");
- message.desiredAddonsConfig = $root.google.container.v1.AddonsConfig.fromObject(object.desiredAddonsConfig);
- }
- if (object.desiredNodePoolId != null)
- message.desiredNodePoolId = String(object.desiredNodePoolId);
- if (object.desiredImageType != null)
- message.desiredImageType = String(object.desiredImageType);
- if (object.desiredDatabaseEncryption != null) {
- if (typeof object.desiredDatabaseEncryption !== "object")
- throw TypeError(".google.container.v1.ClusterUpdate.desiredDatabaseEncryption: object expected");
- message.desiredDatabaseEncryption = $root.google.container.v1.DatabaseEncryption.fromObject(object.desiredDatabaseEncryption);
- }
- if (object.desiredNodePoolAutoscaling != null) {
- if (typeof object.desiredNodePoolAutoscaling !== "object")
- throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolAutoscaling: object expected");
- message.desiredNodePoolAutoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.desiredNodePoolAutoscaling);
- }
- if (object.desiredLocations) {
- if (!Array.isArray(object.desiredLocations))
- throw TypeError(".google.container.v1.ClusterUpdate.desiredLocations: array expected");
- message.desiredLocations = [];
- for (var i = 0; i < object.desiredLocations.length; ++i)
- message.desiredLocations[i] = String(object.desiredLocations[i]);
- }
- if (object.desiredMasterAuthorizedNetworksConfig != null) {
- if (typeof object.desiredMasterAuthorizedNetworksConfig !== "object")
- throw TypeError(".google.container.v1.ClusterUpdate.desiredMasterAuthorizedNetworksConfig: object expected");
- message.desiredMasterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.fromObject(object.desiredMasterAuthorizedNetworksConfig);
- }
- if (object.desiredClusterAutoscaling != null) {
- if (typeof object.desiredClusterAutoscaling !== "object")
- throw TypeError(".google.container.v1.ClusterUpdate.desiredClusterAutoscaling: object expected");
- message.desiredClusterAutoscaling = $root.google.container.v1.ClusterAutoscaling.fromObject(object.desiredClusterAutoscaling);
- }
- if (object.desiredBinaryAuthorization != null) {
- if (typeof object.desiredBinaryAuthorization !== "object")
- throw TypeError(".google.container.v1.ClusterUpdate.desiredBinaryAuthorization: object expected");
- message.desiredBinaryAuthorization = $root.google.container.v1.BinaryAuthorization.fromObject(object.desiredBinaryAuthorization);
- }
- if (object.desiredLoggingService != null)
- message.desiredLoggingService = String(object.desiredLoggingService);
- if (object.desiredResourceUsageExportConfig != null) {
- if (typeof object.desiredResourceUsageExportConfig !== "object")
- throw TypeError(".google.container.v1.ClusterUpdate.desiredResourceUsageExportConfig: object expected");
- message.desiredResourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.fromObject(object.desiredResourceUsageExportConfig);
- }
- if (object.desiredVerticalPodAutoscaling != null) {
- if (typeof object.desiredVerticalPodAutoscaling !== "object")
- throw TypeError(".google.container.v1.ClusterUpdate.desiredVerticalPodAutoscaling: object expected");
- message.desiredVerticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.fromObject(object.desiredVerticalPodAutoscaling);
- }
- if (object.desiredIntraNodeVisibilityConfig != null) {
- if (typeof object.desiredIntraNodeVisibilityConfig !== "object")
- throw TypeError(".google.container.v1.ClusterUpdate.desiredIntraNodeVisibilityConfig: object expected");
- message.desiredIntraNodeVisibilityConfig = $root.google.container.v1.IntraNodeVisibilityConfig.fromObject(object.desiredIntraNodeVisibilityConfig);
- }
- if (object.desiredMasterVersion != null)
- message.desiredMasterVersion = String(object.desiredMasterVersion);
+ var message = new $root.google.container.v1.SetLoggingServiceRequest();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.zone != null)
+ message.zone = String(object.zone);
+ if (object.clusterId != null)
+ message.clusterId = String(object.clusterId);
+ if (object.loggingService != null)
+ message.loggingService = String(object.loggingService);
+ if (object.name != null)
+ message.name = String(object.name);
return message;
};
/**
- * Creates a plain object from a ClusterUpdate message. Also converts values to other types if specified.
+ * Creates a plain object from a SetLoggingServiceRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.ClusterUpdate
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @static
- * @param {google.container.v1.ClusterUpdate} message ClusterUpdate
+ * @param {google.container.v1.SetLoggingServiceRequest} message SetLoggingServiceRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- ClusterUpdate.toObject = function toObject(message, options) {
+ SetLoggingServiceRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.arrays || options.defaults)
- object.desiredLocations = [];
if (options.defaults) {
- object.desiredNodeVersion = "";
- object.desiredMonitoringService = "";
- object.desiredAddonsConfig = null;
- object.desiredNodePoolId = "";
- object.desiredImageType = "";
- object.desiredNodePoolAutoscaling = null;
- object.desiredMasterAuthorizedNetworksConfig = null;
- object.desiredClusterAutoscaling = null;
- object.desiredBinaryAuthorization = null;
- object.desiredLoggingService = "";
- object.desiredResourceUsageExportConfig = null;
- object.desiredVerticalPodAutoscaling = null;
- object.desiredIntraNodeVisibilityConfig = null;
- object.desiredDatabaseEncryption = null;
- object.desiredMasterVersion = "";
- }
- if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion"))
- object.desiredNodeVersion = message.desiredNodeVersion;
- if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService"))
- object.desiredMonitoringService = message.desiredMonitoringService;
- if (message.desiredAddonsConfig != null && message.hasOwnProperty("desiredAddonsConfig"))
- object.desiredAddonsConfig = $root.google.container.v1.AddonsConfig.toObject(message.desiredAddonsConfig, options);
- if (message.desiredNodePoolId != null && message.hasOwnProperty("desiredNodePoolId"))
- object.desiredNodePoolId = message.desiredNodePoolId;
- if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType"))
- object.desiredImageType = message.desiredImageType;
- if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("desiredNodePoolAutoscaling"))
- object.desiredNodePoolAutoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.desiredNodePoolAutoscaling, options);
- if (message.desiredLocations && message.desiredLocations.length) {
- object.desiredLocations = [];
- for (var j = 0; j < message.desiredLocations.length; ++j)
- object.desiredLocations[j] = message.desiredLocations[j];
- }
- if (message.desiredMasterAuthorizedNetworksConfig != null && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig"))
- object.desiredMasterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.toObject(message.desiredMasterAuthorizedNetworksConfig, options);
- if (message.desiredClusterAutoscaling != null && message.hasOwnProperty("desiredClusterAutoscaling"))
- object.desiredClusterAutoscaling = $root.google.container.v1.ClusterAutoscaling.toObject(message.desiredClusterAutoscaling, options);
- if (message.desiredBinaryAuthorization != null && message.hasOwnProperty("desiredBinaryAuthorization"))
- object.desiredBinaryAuthorization = $root.google.container.v1.BinaryAuthorization.toObject(message.desiredBinaryAuthorization, options);
- if (message.desiredLoggingService != null && message.hasOwnProperty("desiredLoggingService"))
- object.desiredLoggingService = message.desiredLoggingService;
- if (message.desiredResourceUsageExportConfig != null && message.hasOwnProperty("desiredResourceUsageExportConfig"))
- object.desiredResourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.toObject(message.desiredResourceUsageExportConfig, options);
- if (message.desiredVerticalPodAutoscaling != null && message.hasOwnProperty("desiredVerticalPodAutoscaling"))
- object.desiredVerticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.toObject(message.desiredVerticalPodAutoscaling, options);
- if (message.desiredIntraNodeVisibilityConfig != null && message.hasOwnProperty("desiredIntraNodeVisibilityConfig"))
- object.desiredIntraNodeVisibilityConfig = $root.google.container.v1.IntraNodeVisibilityConfig.toObject(message.desiredIntraNodeVisibilityConfig, options);
- if (message.desiredDatabaseEncryption != null && message.hasOwnProperty("desiredDatabaseEncryption"))
- object.desiredDatabaseEncryption = $root.google.container.v1.DatabaseEncryption.toObject(message.desiredDatabaseEncryption, options);
- if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion"))
- object.desiredMasterVersion = message.desiredMasterVersion;
+ object.projectId = "";
+ object.zone = "";
+ object.clusterId = "";
+ object.loggingService = "";
+ object.name = "";
+ }
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ object.projectId = message.projectId;
+ if (message.zone != null && message.hasOwnProperty("zone"))
+ object.zone = message.zone;
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ object.clusterId = message.clusterId;
+ if (message.loggingService != null && message.hasOwnProperty("loggingService"))
+ object.loggingService = message.loggingService;
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
return object;
};
/**
- * Converts this ClusterUpdate to JSON.
+ * Converts this SetLoggingServiceRequest to JSON.
* @function toJSON
- * @memberof google.container.v1.ClusterUpdate
+ * @memberof google.container.v1.SetLoggingServiceRequest
* @instance
* @returns {Object.} JSON object
*/
- ClusterUpdate.prototype.toJSON = function toJSON() {
+ SetLoggingServiceRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return ClusterUpdate;
+ return SetLoggingServiceRequest;
})();
- v1.Operation = (function() {
+ v1.SetMonitoringServiceRequest = (function() {
/**
- * Properties of an Operation.
+ * Properties of a SetMonitoringServiceRequest.
* @memberof google.container.v1
- * @interface IOperation
- * @property {string|null} [name] Operation name
- * @property {string|null} [zone] Operation zone
- * @property {google.container.v1.Operation.Type|null} [operationType] Operation operationType
- * @property {google.container.v1.Operation.Status|null} [status] Operation status
- * @property {string|null} [detail] Operation detail
- * @property {string|null} [statusMessage] Operation statusMessage
- * @property {string|null} [selfLink] Operation selfLink
- * @property {string|null} [targetLink] Operation targetLink
- * @property {string|null} [location] Operation location
- * @property {string|null} [startTime] Operation startTime
- * @property {string|null} [endTime] Operation endTime
- * @property {Array.|null} [clusterConditions] Operation clusterConditions
- * @property {Array.|null} [nodepoolConditions] Operation nodepoolConditions
+ * @interface ISetMonitoringServiceRequest
+ * @property {string|null} [projectId] SetMonitoringServiceRequest projectId
+ * @property {string|null} [zone] SetMonitoringServiceRequest zone
+ * @property {string|null} [clusterId] SetMonitoringServiceRequest clusterId
+ * @property {string|null} [monitoringService] SetMonitoringServiceRequest monitoringService
+ * @property {string|null} [name] SetMonitoringServiceRequest name
*/
/**
- * Constructs a new Operation.
+ * Constructs a new SetMonitoringServiceRequest.
* @memberof google.container.v1
- * @classdesc Represents an Operation.
- * @implements IOperation
+ * @classdesc Represents a SetMonitoringServiceRequest.
+ * @implements ISetMonitoringServiceRequest
* @constructor
- * @param {google.container.v1.IOperation=} [properties] Properties to set
+ * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set
*/
- function Operation(properties) {
- this.clusterConditions = [];
- this.nodepoolConditions = [];
+ function SetMonitoringServiceRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -8040,237 +12760,127 @@
}
/**
- * Operation name.
- * @member {string} name
- * @memberof google.container.v1.Operation
+ * SetMonitoringServiceRequest projectId.
+ * @member {string} projectId
+ * @memberof google.container.v1.SetMonitoringServiceRequest
* @instance
*/
- Operation.prototype.name = "";
+ SetMonitoringServiceRequest.prototype.projectId = "";
/**
- * Operation zone.
+ * SetMonitoringServiceRequest zone.
* @member {string} zone
- * @memberof google.container.v1.Operation
- * @instance
- */
- Operation.prototype.zone = "";
-
- /**
- * Operation operationType.
- * @member {google.container.v1.Operation.Type} operationType
- * @memberof google.container.v1.Operation
- * @instance
- */
- Operation.prototype.operationType = 0;
-
- /**
- * Operation status.
- * @member {google.container.v1.Operation.Status} status
- * @memberof google.container.v1.Operation
- * @instance
- */
- Operation.prototype.status = 0;
-
- /**
- * Operation detail.
- * @member {string} detail
- * @memberof google.container.v1.Operation
- * @instance
- */
- Operation.prototype.detail = "";
-
- /**
- * Operation statusMessage.
- * @member {string} statusMessage
- * @memberof google.container.v1.Operation
- * @instance
- */
- Operation.prototype.statusMessage = "";
-
- /**
- * Operation selfLink.
- * @member {string} selfLink
- * @memberof google.container.v1.Operation
- * @instance
- */
- Operation.prototype.selfLink = "";
-
- /**
- * Operation targetLink.
- * @member {string} targetLink
- * @memberof google.container.v1.Operation
- * @instance
- */
- Operation.prototype.targetLink = "";
-
- /**
- * Operation location.
- * @member {string} location
- * @memberof google.container.v1.Operation
- * @instance
- */
- Operation.prototype.location = "";
-
- /**
- * Operation startTime.
- * @member {string} startTime
- * @memberof google.container.v1.Operation
+ * @memberof google.container.v1.SetMonitoringServiceRequest
* @instance
*/
- Operation.prototype.startTime = "";
+ SetMonitoringServiceRequest.prototype.zone = "";
/**
- * Operation endTime.
- * @member {string} endTime
- * @memberof google.container.v1.Operation
+ * SetMonitoringServiceRequest clusterId.
+ * @member {string} clusterId
+ * @memberof google.container.v1.SetMonitoringServiceRequest
* @instance
*/
- Operation.prototype.endTime = "";
+ SetMonitoringServiceRequest.prototype.clusterId = "";
/**
- * Operation clusterConditions.
- * @member {Array.} clusterConditions
- * @memberof google.container.v1.Operation
+ * SetMonitoringServiceRequest monitoringService.
+ * @member {string} monitoringService
+ * @memberof google.container.v1.SetMonitoringServiceRequest
* @instance
*/
- Operation.prototype.clusterConditions = $util.emptyArray;
+ SetMonitoringServiceRequest.prototype.monitoringService = "";
/**
- * Operation nodepoolConditions.
- * @member {Array.} nodepoolConditions
- * @memberof google.container.v1.Operation
+ * SetMonitoringServiceRequest name.
+ * @member {string} name
+ * @memberof google.container.v1.SetMonitoringServiceRequest
* @instance
*/
- Operation.prototype.nodepoolConditions = $util.emptyArray;
+ SetMonitoringServiceRequest.prototype.name = "";
/**
- * Creates a new Operation instance using the specified properties.
+ * Creates a new SetMonitoringServiceRequest instance using the specified properties.
* @function create
- * @memberof google.container.v1.Operation
+ * @memberof google.container.v1.SetMonitoringServiceRequest
* @static
- * @param {google.container.v1.IOperation=} [properties] Properties to set
- * @returns {google.container.v1.Operation} Operation instance
+ * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set
+ * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest instance
*/
- Operation.create = function create(properties) {
- return new Operation(properties);
+ SetMonitoringServiceRequest.create = function create(properties) {
+ return new SetMonitoringServiceRequest(properties);
};
/**
- * Encodes the specified Operation message. Does not implicitly {@link google.container.v1.Operation.verify|verify} messages.
+ * Encodes the specified SetMonitoringServiceRequest message. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.Operation
+ * @memberof google.container.v1.SetMonitoringServiceRequest
* @static
- * @param {google.container.v1.IOperation} message Operation message or plain object to encode
+ * @param {google.container.v1.ISetMonitoringServiceRequest} message SetMonitoringServiceRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- Operation.encode = function encode(message, writer) {
+ SetMonitoringServiceRequest.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
- if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType"))
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.operationType);
- if (message.status != null && Object.hasOwnProperty.call(message, "status"))
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status);
- if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage"))
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage);
- if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink"))
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.selfLink);
- if (message.targetLink != null && Object.hasOwnProperty.call(message, "targetLink"))
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.targetLink);
- if (message.detail != null && Object.hasOwnProperty.call(message, "detail"))
- writer.uint32(/* id 8, wireType 2 =*/66).string(message.detail);
- if (message.location != null && Object.hasOwnProperty.call(message, "location"))
- writer.uint32(/* id 9, wireType 2 =*/74).string(message.location);
- if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
- writer.uint32(/* id 10, wireType 2 =*/82).string(message.startTime);
- if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
- writer.uint32(/* id 11, wireType 2 =*/90).string(message.endTime);
- if (message.clusterConditions != null && message.clusterConditions.length)
- for (var i = 0; i < message.clusterConditions.length; ++i)
- $root.google.container.v1.StatusCondition.encode(message.clusterConditions[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
- if (message.nodepoolConditions != null && message.nodepoolConditions.length)
- for (var i = 0; i < message.nodepoolConditions.length; ++i)
- $root.google.container.v1.StatusCondition.encode(message.nodepoolConditions[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
+ if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
+ if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.monitoringService);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.name);
return writer;
};
/**
- * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.container.v1.Operation.verify|verify} messages.
+ * Encodes the specified SetMonitoringServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.Operation
+ * @memberof google.container.v1.SetMonitoringServiceRequest
* @static
- * @param {google.container.v1.IOperation} message Operation message or plain object to encode
+ * @param {google.container.v1.ISetMonitoringServiceRequest} message SetMonitoringServiceRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- Operation.encodeDelimited = function encodeDelimited(message, writer) {
+ SetMonitoringServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes an Operation message from the specified reader or buffer.
+ * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.Operation
+ * @memberof google.container.v1.SetMonitoringServiceRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.Operation} Operation
+ * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- Operation.decode = function decode(reader, length) {
+ SetMonitoringServiceRequest.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.Operation();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetMonitoringServiceRequest();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.name = reader.string();
+ message.projectId = reader.string();
break;
case 2:
message.zone = reader.string();
break;
case 3:
- message.operationType = reader.int32();
- break;
- case 4:
- message.status = reader.int32();
- break;
- case 8:
- message.detail = reader.string();
- break;
- case 5:
- message.statusMessage = reader.string();
- break;
- case 6:
- message.selfLink = reader.string();
- break;
- case 7:
- message.targetLink = reader.string();
- break;
- case 9:
- message.location = reader.string();
- break;
- case 10:
- message.startTime = reader.string();
- break;
- case 11:
- message.endTime = reader.string();
+ message.clusterId = reader.string();
break;
- case 13:
- if (!(message.clusterConditions && message.clusterConditions.length))
- message.clusterConditions = [];
- message.clusterConditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32()));
+ case 4:
+ message.monitoringService = reader.string();
break;
- case 14:
- if (!(message.nodepoolConditions && message.nodepoolConditions.length))
- message.nodepoolConditions = [];
- message.nodepoolConditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32()));
+ case 6:
+ message.name = reader.string();
break;
default:
reader.skipType(tag & 7);
@@ -8281,423 +12891,144 @@
};
/**
- * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.Operation
+ * @memberof google.container.v1.SetMonitoringServiceRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.Operation} Operation
+ * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- Operation.decodeDelimited = function decodeDelimited(reader) {
+ SetMonitoringServiceRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies an Operation message.
+ * Verifies a SetMonitoringServiceRequest message.
* @function verify
- * @memberof google.container.v1.Operation
+ * @memberof google.container.v1.SetMonitoringServiceRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- Operation.verify = function verify(message) {
+ SetMonitoringServiceRequest.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.name != null && message.hasOwnProperty("name"))
- if (!$util.isString(message.name))
- return "name: string expected";
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ if (!$util.isString(message.projectId))
+ return "projectId: string expected";
if (message.zone != null && message.hasOwnProperty("zone"))
if (!$util.isString(message.zone))
return "zone: string expected";
- if (message.operationType != null && message.hasOwnProperty("operationType"))
- switch (message.operationType) {
- default:
- return "operationType: enum value expected";
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- case 9:
- case 10:
- case 11:
- case 12:
- case 13:
- case 14:
- case 15:
- case 16:
- break;
- }
- if (message.status != null && message.hasOwnProperty("status"))
- switch (message.status) {
- default:
- return "status: enum value expected";
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- break;
- }
- if (message.detail != null && message.hasOwnProperty("detail"))
- if (!$util.isString(message.detail))
- return "detail: string expected";
- if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
- if (!$util.isString(message.statusMessage))
- return "statusMessage: string expected";
- if (message.selfLink != null && message.hasOwnProperty("selfLink"))
- if (!$util.isString(message.selfLink))
- return "selfLink: string expected";
- if (message.targetLink != null && message.hasOwnProperty("targetLink"))
- if (!$util.isString(message.targetLink))
- return "targetLink: string expected";
- if (message.location != null && message.hasOwnProperty("location"))
- if (!$util.isString(message.location))
- return "location: string expected";
- if (message.startTime != null && message.hasOwnProperty("startTime"))
- if (!$util.isString(message.startTime))
- return "startTime: string expected";
- if (message.endTime != null && message.hasOwnProperty("endTime"))
- if (!$util.isString(message.endTime))
- return "endTime: string expected";
- if (message.clusterConditions != null && message.hasOwnProperty("clusterConditions")) {
- if (!Array.isArray(message.clusterConditions))
- return "clusterConditions: array expected";
- for (var i = 0; i < message.clusterConditions.length; ++i) {
- var error = $root.google.container.v1.StatusCondition.verify(message.clusterConditions[i]);
- if (error)
- return "clusterConditions." + error;
- }
- }
- if (message.nodepoolConditions != null && message.hasOwnProperty("nodepoolConditions")) {
- if (!Array.isArray(message.nodepoolConditions))
- return "nodepoolConditions: array expected";
- for (var i = 0; i < message.nodepoolConditions.length; ++i) {
- var error = $root.google.container.v1.StatusCondition.verify(message.nodepoolConditions[i]);
- if (error)
- return "nodepoolConditions." + error;
- }
- }
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ if (!$util.isString(message.clusterId))
+ return "clusterId: string expected";
+ if (message.monitoringService != null && message.hasOwnProperty("monitoringService"))
+ if (!$util.isString(message.monitoringService))
+ return "monitoringService: string expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
return null;
};
/**
- * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * Creates a SetMonitoringServiceRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.Operation
- * @static
- * @param {Object.} object Plain object
- * @returns {google.container.v1.Operation} Operation
- */
- Operation.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.Operation)
- return object;
- var message = new $root.google.container.v1.Operation();
- if (object.name != null)
- message.name = String(object.name);
- if (object.zone != null)
- message.zone = String(object.zone);
- switch (object.operationType) {
- case "TYPE_UNSPECIFIED":
- case 0:
- message.operationType = 0;
- break;
- case "CREATE_CLUSTER":
- case 1:
- message.operationType = 1;
- break;
- case "DELETE_CLUSTER":
- case 2:
- message.operationType = 2;
- break;
- case "UPGRADE_MASTER":
- case 3:
- message.operationType = 3;
- break;
- case "UPGRADE_NODES":
- case 4:
- message.operationType = 4;
- break;
- case "REPAIR_CLUSTER":
- case 5:
- message.operationType = 5;
- break;
- case "UPDATE_CLUSTER":
- case 6:
- message.operationType = 6;
- break;
- case "CREATE_NODE_POOL":
- case 7:
- message.operationType = 7;
- break;
- case "DELETE_NODE_POOL":
- case 8:
- message.operationType = 8;
- break;
- case "SET_NODE_POOL_MANAGEMENT":
- case 9:
- message.operationType = 9;
- break;
- case "AUTO_REPAIR_NODES":
- case 10:
- message.operationType = 10;
- break;
- case "AUTO_UPGRADE_NODES":
- case 11:
- message.operationType = 11;
- break;
- case "SET_LABELS":
- case 12:
- message.operationType = 12;
- break;
- case "SET_MASTER_AUTH":
- case 13:
- message.operationType = 13;
- break;
- case "SET_NODE_POOL_SIZE":
- case 14:
- message.operationType = 14;
- break;
- case "SET_NETWORK_POLICY":
- case 15:
- message.operationType = 15;
- break;
- case "SET_MAINTENANCE_POLICY":
- case 16:
- message.operationType = 16;
- break;
- }
- switch (object.status) {
- case "STATUS_UNSPECIFIED":
- case 0:
- message.status = 0;
- break;
- case "PENDING":
- case 1:
- message.status = 1;
- break;
- case "RUNNING":
- case 2:
- message.status = 2;
- break;
- case "DONE":
- case 3:
- message.status = 3;
- break;
- case "ABORTING":
- case 4:
- message.status = 4;
- break;
- }
- if (object.detail != null)
- message.detail = String(object.detail);
- if (object.statusMessage != null)
- message.statusMessage = String(object.statusMessage);
- if (object.selfLink != null)
- message.selfLink = String(object.selfLink);
- if (object.targetLink != null)
- message.targetLink = String(object.targetLink);
- if (object.location != null)
- message.location = String(object.location);
- if (object.startTime != null)
- message.startTime = String(object.startTime);
- if (object.endTime != null)
- message.endTime = String(object.endTime);
- if (object.clusterConditions) {
- if (!Array.isArray(object.clusterConditions))
- throw TypeError(".google.container.v1.Operation.clusterConditions: array expected");
- message.clusterConditions = [];
- for (var i = 0; i < object.clusterConditions.length; ++i) {
- if (typeof object.clusterConditions[i] !== "object")
- throw TypeError(".google.container.v1.Operation.clusterConditions: object expected");
- message.clusterConditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.clusterConditions[i]);
- }
- }
- if (object.nodepoolConditions) {
- if (!Array.isArray(object.nodepoolConditions))
- throw TypeError(".google.container.v1.Operation.nodepoolConditions: array expected");
- message.nodepoolConditions = [];
- for (var i = 0; i < object.nodepoolConditions.length; ++i) {
- if (typeof object.nodepoolConditions[i] !== "object")
- throw TypeError(".google.container.v1.Operation.nodepoolConditions: object expected");
- message.nodepoolConditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.nodepoolConditions[i]);
- }
- }
+ * @memberof google.container.v1.SetMonitoringServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest
+ */
+ SetMonitoringServiceRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.SetMonitoringServiceRequest)
+ return object;
+ var message = new $root.google.container.v1.SetMonitoringServiceRequest();
+ if (object.projectId != null)
+ message.projectId = String(object.projectId);
+ if (object.zone != null)
+ message.zone = String(object.zone);
+ if (object.clusterId != null)
+ message.clusterId = String(object.clusterId);
+ if (object.monitoringService != null)
+ message.monitoringService = String(object.monitoringService);
+ if (object.name != null)
+ message.name = String(object.name);
return message;
};
/**
- * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * Creates a plain object from a SetMonitoringServiceRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.Operation
+ * @memberof google.container.v1.SetMonitoringServiceRequest
* @static
- * @param {google.container.v1.Operation} message Operation
+ * @param {google.container.v1.SetMonitoringServiceRequest} message SetMonitoringServiceRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- Operation.toObject = function toObject(message, options) {
+ SetMonitoringServiceRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.arrays || options.defaults) {
- object.clusterConditions = [];
- object.nodepoolConditions = [];
- }
if (options.defaults) {
- object.name = "";
+ object.projectId = "";
object.zone = "";
- object.operationType = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
- object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0;
- object.statusMessage = "";
- object.selfLink = "";
- object.targetLink = "";
- object.detail = "";
- object.location = "";
- object.startTime = "";
- object.endTime = "";
+ object.clusterId = "";
+ object.monitoringService = "";
+ object.name = "";
}
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
+ if (message.projectId != null && message.hasOwnProperty("projectId"))
+ object.projectId = message.projectId;
if (message.zone != null && message.hasOwnProperty("zone"))
object.zone = message.zone;
- if (message.operationType != null && message.hasOwnProperty("operationType"))
- object.operationType = options.enums === String ? $root.google.container.v1.Operation.Type[message.operationType] : message.operationType;
- if (message.status != null && message.hasOwnProperty("status"))
- object.status = options.enums === String ? $root.google.container.v1.Operation.Status[message.status] : message.status;
- if (message.statusMessage != null && message.hasOwnProperty("statusMessage"))
- object.statusMessage = message.statusMessage;
- if (message.selfLink != null && message.hasOwnProperty("selfLink"))
- object.selfLink = message.selfLink;
- if (message.targetLink != null && message.hasOwnProperty("targetLink"))
- object.targetLink = message.targetLink;
- if (message.detail != null && message.hasOwnProperty("detail"))
- object.detail = message.detail;
- if (message.location != null && message.hasOwnProperty("location"))
- object.location = message.location;
- if (message.startTime != null && message.hasOwnProperty("startTime"))
- object.startTime = message.startTime;
- if (message.endTime != null && message.hasOwnProperty("endTime"))
- object.endTime = message.endTime;
- if (message.clusterConditions && message.clusterConditions.length) {
- object.clusterConditions = [];
- for (var j = 0; j < message.clusterConditions.length; ++j)
- object.clusterConditions[j] = $root.google.container.v1.StatusCondition.toObject(message.clusterConditions[j], options);
- }
- if (message.nodepoolConditions && message.nodepoolConditions.length) {
- object.nodepoolConditions = [];
- for (var j = 0; j < message.nodepoolConditions.length; ++j)
- object.nodepoolConditions[j] = $root.google.container.v1.StatusCondition.toObject(message.nodepoolConditions[j], options);
- }
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ object.clusterId = message.clusterId;
+ if (message.monitoringService != null && message.hasOwnProperty("monitoringService"))
+ object.monitoringService = message.monitoringService;
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
return object;
};
/**
- * Converts this Operation to JSON.
+ * Converts this SetMonitoringServiceRequest to JSON.
* @function toJSON
- * @memberof google.container.v1.Operation
+ * @memberof google.container.v1.SetMonitoringServiceRequest
* @instance
* @returns {Object.} JSON object
*/
- Operation.prototype.toJSON = function toJSON() {
+ SetMonitoringServiceRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- /**
- * Status enum.
- * @name google.container.v1.Operation.Status
- * @enum {number}
- * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value
- * @property {number} PENDING=1 PENDING value
- * @property {number} RUNNING=2 RUNNING value
- * @property {number} DONE=3 DONE value
- * @property {number} ABORTING=4 ABORTING value
- */
- Operation.Status = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "STATUS_UNSPECIFIED"] = 0;
- values[valuesById[1] = "PENDING"] = 1;
- values[valuesById[2] = "RUNNING"] = 2;
- values[valuesById[3] = "DONE"] = 3;
- values[valuesById[4] = "ABORTING"] = 4;
- return values;
- })();
-
- /**
- * Type enum.
- * @name google.container.v1.Operation.Type
- * @enum {number}
- * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value
- * @property {number} CREATE_CLUSTER=1 CREATE_CLUSTER value
- * @property {number} DELETE_CLUSTER=2 DELETE_CLUSTER value
- * @property {number} UPGRADE_MASTER=3 UPGRADE_MASTER value
- * @property {number} UPGRADE_NODES=4 UPGRADE_NODES value
- * @property {number} REPAIR_CLUSTER=5 REPAIR_CLUSTER value
- * @property {number} UPDATE_CLUSTER=6 UPDATE_CLUSTER value
- * @property {number} CREATE_NODE_POOL=7 CREATE_NODE_POOL value
- * @property {number} DELETE_NODE_POOL=8 DELETE_NODE_POOL value
- * @property {number} SET_NODE_POOL_MANAGEMENT=9 SET_NODE_POOL_MANAGEMENT value
- * @property {number} AUTO_REPAIR_NODES=10 AUTO_REPAIR_NODES value
- * @property {number} AUTO_UPGRADE_NODES=11 AUTO_UPGRADE_NODES value
- * @property {number} SET_LABELS=12 SET_LABELS value
- * @property {number} SET_MASTER_AUTH=13 SET_MASTER_AUTH value
- * @property {number} SET_NODE_POOL_SIZE=14 SET_NODE_POOL_SIZE value
- * @property {number} SET_NETWORK_POLICY=15 SET_NETWORK_POLICY value
- * @property {number} SET_MAINTENANCE_POLICY=16 SET_MAINTENANCE_POLICY value
- */
- Operation.Type = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0;
- values[valuesById[1] = "CREATE_CLUSTER"] = 1;
- values[valuesById[2] = "DELETE_CLUSTER"] = 2;
- values[valuesById[3] = "UPGRADE_MASTER"] = 3;
- values[valuesById[4] = "UPGRADE_NODES"] = 4;
- values[valuesById[5] = "REPAIR_CLUSTER"] = 5;
- values[valuesById[6] = "UPDATE_CLUSTER"] = 6;
- values[valuesById[7] = "CREATE_NODE_POOL"] = 7;
- values[valuesById[8] = "DELETE_NODE_POOL"] = 8;
- values[valuesById[9] = "SET_NODE_POOL_MANAGEMENT"] = 9;
- values[valuesById[10] = "AUTO_REPAIR_NODES"] = 10;
- values[valuesById[11] = "AUTO_UPGRADE_NODES"] = 11;
- values[valuesById[12] = "SET_LABELS"] = 12;
- values[valuesById[13] = "SET_MASTER_AUTH"] = 13;
- values[valuesById[14] = "SET_NODE_POOL_SIZE"] = 14;
- values[valuesById[15] = "SET_NETWORK_POLICY"] = 15;
- values[valuesById[16] = "SET_MAINTENANCE_POLICY"] = 16;
- return values;
- })();
-
- return Operation;
+ return SetMonitoringServiceRequest;
})();
- v1.CreateClusterRequest = (function() {
+ v1.SetAddonsConfigRequest = (function() {
/**
- * Properties of a CreateClusterRequest.
+ * Properties of a SetAddonsConfigRequest.
* @memberof google.container.v1
- * @interface ICreateClusterRequest
- * @property {string|null} [projectId] CreateClusterRequest projectId
- * @property {string|null} [zone] CreateClusterRequest zone
- * @property {google.container.v1.ICluster|null} [cluster] CreateClusterRequest cluster
- * @property {string|null} [parent] CreateClusterRequest parent
+ * @interface ISetAddonsConfigRequest
+ * @property {string|null} [projectId] SetAddonsConfigRequest projectId
+ * @property {string|null} [zone] SetAddonsConfigRequest zone
+ * @property {string|null} [clusterId] SetAddonsConfigRequest clusterId
+ * @property {google.container.v1.IAddonsConfig|null} [addonsConfig] SetAddonsConfigRequest addonsConfig
+ * @property {string|null} [name] SetAddonsConfigRequest name
*/
/**
- * Constructs a new CreateClusterRequest.
+ * Constructs a new SetAddonsConfigRequest.
* @memberof google.container.v1
- * @classdesc Represents a CreateClusterRequest.
- * @implements ICreateClusterRequest
+ * @classdesc Represents a SetAddonsConfigRequest.
+ * @implements ISetAddonsConfigRequest
* @constructor
- * @param {google.container.v1.ICreateClusterRequest=} [properties] Properties to set
+ * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set
*/
- function CreateClusterRequest(properties) {
+ function SetAddonsConfigRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -8705,100 +13036,110 @@
}
/**
- * CreateClusterRequest projectId.
+ * SetAddonsConfigRequest projectId.
* @member {string} projectId
- * @memberof google.container.v1.CreateClusterRequest
+ * @memberof google.container.v1.SetAddonsConfigRequest
* @instance
*/
- CreateClusterRequest.prototype.projectId = "";
+ SetAddonsConfigRequest.prototype.projectId = "";
/**
- * CreateClusterRequest zone.
+ * SetAddonsConfigRequest zone.
* @member {string} zone
- * @memberof google.container.v1.CreateClusterRequest
+ * @memberof google.container.v1.SetAddonsConfigRequest
* @instance
*/
- CreateClusterRequest.prototype.zone = "";
+ SetAddonsConfigRequest.prototype.zone = "";
/**
- * CreateClusterRequest cluster.
- * @member {google.container.v1.ICluster|null|undefined} cluster
- * @memberof google.container.v1.CreateClusterRequest
+ * SetAddonsConfigRequest clusterId.
+ * @member {string} clusterId
+ * @memberof google.container.v1.SetAddonsConfigRequest
* @instance
*/
- CreateClusterRequest.prototype.cluster = null;
+ SetAddonsConfigRequest.prototype.clusterId = "";
/**
- * CreateClusterRequest parent.
- * @member {string} parent
- * @memberof google.container.v1.CreateClusterRequest
+ * SetAddonsConfigRequest addonsConfig.
+ * @member {google.container.v1.IAddonsConfig|null|undefined} addonsConfig
+ * @memberof google.container.v1.SetAddonsConfigRequest
* @instance
*/
- CreateClusterRequest.prototype.parent = "";
+ SetAddonsConfigRequest.prototype.addonsConfig = null;
/**
- * Creates a new CreateClusterRequest instance using the specified properties.
+ * SetAddonsConfigRequest name.
+ * @member {string} name
+ * @memberof google.container.v1.SetAddonsConfigRequest
+ * @instance
+ */
+ SetAddonsConfigRequest.prototype.name = "";
+
+ /**
+ * Creates a new SetAddonsConfigRequest instance using the specified properties.
* @function create
- * @memberof google.container.v1.CreateClusterRequest
+ * @memberof google.container.v1.SetAddonsConfigRequest
* @static
- * @param {google.container.v1.ICreateClusterRequest=} [properties] Properties to set
- * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest instance
+ * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set
+ * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest instance
*/
- CreateClusterRequest.create = function create(properties) {
- return new CreateClusterRequest(properties);
+ SetAddonsConfigRequest.create = function create(properties) {
+ return new SetAddonsConfigRequest(properties);
};
/**
- * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.container.v1.CreateClusterRequest.verify|verify} messages.
+ * Encodes the specified SetAddonsConfigRequest message. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.CreateClusterRequest
+ * @memberof google.container.v1.SetAddonsConfigRequest
* @static
- * @param {google.container.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode
+ * @param {google.container.v1.ISetAddonsConfigRequest} message SetAddonsConfigRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- CreateClusterRequest.encode = function encode(message, writer) {
+ SetAddonsConfigRequest.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
- if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster"))
- $root.google.container.v1.Cluster.encode(message.cluster, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
- if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent);
+ if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
+ if (message.addonsConfig != null && Object.hasOwnProperty.call(message, "addonsConfig"))
+ $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.name);
return writer;
};
/**
- * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateClusterRequest.verify|verify} messages.
+ * Encodes the specified SetAddonsConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.CreateClusterRequest
+ * @memberof google.container.v1.SetAddonsConfigRequest
* @static
- * @param {google.container.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode
+ * @param {google.container.v1.ISetAddonsConfigRequest} message SetAddonsConfigRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- CreateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ SetAddonsConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a CreateClusterRequest message from the specified reader or buffer.
+ * Decodes a SetAddonsConfigRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.CreateClusterRequest
+ * @memberof google.container.v1.SetAddonsConfigRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest
+ * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- CreateClusterRequest.decode = function decode(reader, length) {
+ SetAddonsConfigRequest.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.CreateClusterRequest();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetAddonsConfigRequest();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
@@ -8809,10 +13150,13 @@
message.zone = reader.string();
break;
case 3:
- message.cluster = $root.google.container.v1.Cluster.decode(reader, reader.uint32());
+ message.clusterId = reader.string();
break;
- case 5:
- message.parent = reader.string();
+ case 4:
+ message.addonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32());
+ break;
+ case 6:
+ message.name = reader.string();
break;
default:
reader.skipType(tag & 7);
@@ -8823,30 +13167,30 @@
};
/**
- * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited.
+ * Decodes a SetAddonsConfigRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.CreateClusterRequest
+ * @memberof google.container.v1.SetAddonsConfigRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest
+ * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- CreateClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ SetAddonsConfigRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a CreateClusterRequest message.
+ * Verifies a SetAddonsConfigRequest message.
* @function verify
- * @memberof google.container.v1.CreateClusterRequest
+ * @memberof google.container.v1.SetAddonsConfigRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- CreateClusterRequest.verify = function verify(message) {
+ SetAddonsConfigRequest.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.projectId != null && message.hasOwnProperty("projectId"))
@@ -8855,108 +13199,118 @@
if (message.zone != null && message.hasOwnProperty("zone"))
if (!$util.isString(message.zone))
return "zone: string expected";
- if (message.cluster != null && message.hasOwnProperty("cluster")) {
- var error = $root.google.container.v1.Cluster.verify(message.cluster);
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ if (!$util.isString(message.clusterId))
+ return "clusterId: string expected";
+ if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) {
+ var error = $root.google.container.v1.AddonsConfig.verify(message.addonsConfig);
if (error)
- return "cluster." + error;
+ return "addonsConfig." + error;
}
- if (message.parent != null && message.hasOwnProperty("parent"))
- if (!$util.isString(message.parent))
- return "parent: string expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
return null;
};
/**
- * Creates a CreateClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a SetAddonsConfigRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.CreateClusterRequest
+ * @memberof google.container.v1.SetAddonsConfigRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest
+ * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest
*/
- CreateClusterRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.CreateClusterRequest)
+ SetAddonsConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.SetAddonsConfigRequest)
return object;
- var message = new $root.google.container.v1.CreateClusterRequest();
+ var message = new $root.google.container.v1.SetAddonsConfigRequest();
if (object.projectId != null)
message.projectId = String(object.projectId);
if (object.zone != null)
message.zone = String(object.zone);
- if (object.cluster != null) {
- if (typeof object.cluster !== "object")
- throw TypeError(".google.container.v1.CreateClusterRequest.cluster: object expected");
- message.cluster = $root.google.container.v1.Cluster.fromObject(object.cluster);
+ if (object.clusterId != null)
+ message.clusterId = String(object.clusterId);
+ if (object.addonsConfig != null) {
+ if (typeof object.addonsConfig !== "object")
+ throw TypeError(".google.container.v1.SetAddonsConfigRequest.addonsConfig: object expected");
+ message.addonsConfig = $root.google.container.v1.AddonsConfig.fromObject(object.addonsConfig);
}
- if (object.parent != null)
- message.parent = String(object.parent);
+ if (object.name != null)
+ message.name = String(object.name);
return message;
};
/**
- * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a SetAddonsConfigRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.CreateClusterRequest
+ * @memberof google.container.v1.SetAddonsConfigRequest
* @static
- * @param {google.container.v1.CreateClusterRequest} message CreateClusterRequest
+ * @param {google.container.v1.SetAddonsConfigRequest} message SetAddonsConfigRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- CreateClusterRequest.toObject = function toObject(message, options) {
+ SetAddonsConfigRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
object.projectId = "";
object.zone = "";
- object.cluster = null;
- object.parent = "";
+ object.clusterId = "";
+ object.addonsConfig = null;
+ object.name = "";
}
if (message.projectId != null && message.hasOwnProperty("projectId"))
object.projectId = message.projectId;
if (message.zone != null && message.hasOwnProperty("zone"))
object.zone = message.zone;
- if (message.cluster != null && message.hasOwnProperty("cluster"))
- object.cluster = $root.google.container.v1.Cluster.toObject(message.cluster, options);
- if (message.parent != null && message.hasOwnProperty("parent"))
- object.parent = message.parent;
+ if (message.clusterId != null && message.hasOwnProperty("clusterId"))
+ object.clusterId = message.clusterId;
+ if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig"))
+ object.addonsConfig = $root.google.container.v1.AddonsConfig.toObject(message.addonsConfig, options);
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
return object;
};
/**
- * Converts this CreateClusterRequest to JSON.
+ * Converts this SetAddonsConfigRequest to JSON.
* @function toJSON
- * @memberof google.container.v1.CreateClusterRequest
+ * @memberof google.container.v1.SetAddonsConfigRequest
* @instance
* @returns {Object.} JSON object
*/
- CreateClusterRequest.prototype.toJSON = function toJSON() {
+ SetAddonsConfigRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return CreateClusterRequest;
+ return SetAddonsConfigRequest;
})();
- v1.GetClusterRequest = (function() {
+ v1.SetLocationsRequest = (function() {
/**
- * Properties of a GetClusterRequest.
+ * Properties of a SetLocationsRequest.
* @memberof google.container.v1
- * @interface IGetClusterRequest
- * @property {string|null} [projectId] GetClusterRequest projectId
- * @property {string|null} [zone] GetClusterRequest zone
- * @property {string|null} [clusterId] GetClusterRequest clusterId
- * @property {string|null} [name] GetClusterRequest name
+ * @interface ISetLocationsRequest
+ * @property {string|null} [projectId] SetLocationsRequest projectId
+ * @property {string|null} [zone] SetLocationsRequest zone
+ * @property {string|null} [clusterId] SetLocationsRequest clusterId
+ * @property {Array.|null} [locations] SetLocationsRequest locations
+ * @property {string|null} [name] SetLocationsRequest name
*/
/**
- * Constructs a new GetClusterRequest.
+ * Constructs a new SetLocationsRequest.
* @memberof google.container.v1
- * @classdesc Represents a GetClusterRequest.
- * @implements IGetClusterRequest
+ * @classdesc Represents a SetLocationsRequest.
+ * @implements ISetLocationsRequest
* @constructor
- * @param {google.container.v1.IGetClusterRequest=} [properties] Properties to set
+ * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set
*/
- function GetClusterRequest(properties) {
+ function SetLocationsRequest(properties) {
+ this.locations = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -8964,59 +13318,67 @@
}
/**
- * GetClusterRequest projectId.
+ * SetLocationsRequest projectId.
* @member {string} projectId
- * @memberof google.container.v1.GetClusterRequest
+ * @memberof google.container.v1.SetLocationsRequest
* @instance
*/
- GetClusterRequest.prototype.projectId = "";
+ SetLocationsRequest.prototype.projectId = "";
/**
- * GetClusterRequest zone.
+ * SetLocationsRequest zone.
* @member {string} zone
- * @memberof google.container.v1.GetClusterRequest
+ * @memberof google.container.v1.SetLocationsRequest
* @instance
*/
- GetClusterRequest.prototype.zone = "";
+ SetLocationsRequest.prototype.zone = "";
/**
- * GetClusterRequest clusterId.
+ * SetLocationsRequest clusterId.
* @member {string} clusterId
- * @memberof google.container.v1.GetClusterRequest
+ * @memberof google.container.v1.SetLocationsRequest
* @instance
*/
- GetClusterRequest.prototype.clusterId = "";
+ SetLocationsRequest.prototype.clusterId = "";
/**
- * GetClusterRequest name.
+ * SetLocationsRequest locations.
+ * @member {Array.} locations
+ * @memberof google.container.v1.SetLocationsRequest
+ * @instance
+ */
+ SetLocationsRequest.prototype.locations = $util.emptyArray;
+
+ /**
+ * SetLocationsRequest name.
* @member {string} name
- * @memberof google.container.v1.GetClusterRequest
+ * @memberof google.container.v1.SetLocationsRequest
* @instance
*/
- GetClusterRequest.prototype.name = "";
+ SetLocationsRequest.prototype.name = "";
/**
- * Creates a new GetClusterRequest instance using the specified properties.
+ * Creates a new SetLocationsRequest instance using the specified properties.
* @function create
- * @memberof google.container.v1.GetClusterRequest
+ * @memberof google.container.v1.SetLocationsRequest
* @static
- * @param {google.container.v1.IGetClusterRequest=} [properties] Properties to set
- * @returns {google.container.v1.GetClusterRequest} GetClusterRequest instance
+ * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set
+ * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest instance
*/
- GetClusterRequest.create = function create(properties) {
- return new GetClusterRequest(properties);
+ SetLocationsRequest.create = function create(properties) {
+ return new SetLocationsRequest(properties);
};
/**
- * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.container.v1.GetClusterRequest.verify|verify} messages.
+ * Encodes the specified SetLocationsRequest message. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.GetClusterRequest
+ * @memberof google.container.v1.SetLocationsRequest
* @static
- * @param {google.container.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode
+ * @param {google.container.v1.ISetLocationsRequest} message SetLocationsRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- GetClusterRequest.encode = function encode(message, writer) {
+ SetLocationsRequest.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
@@ -9025,39 +13387,42 @@
writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
+ if (message.locations != null && message.locations.length)
+ for (var i = 0; i < message.locations.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.locations[i]);
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.name);
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.name);
return writer;
};
/**
- * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.GetClusterRequest.verify|verify} messages.
+ * Encodes the specified SetLocationsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.GetClusterRequest
+ * @memberof google.container.v1.SetLocationsRequest
* @static
- * @param {google.container.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode
+ * @param {google.container.v1.ISetLocationsRequest} message SetLocationsRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- GetClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ SetLocationsRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a GetClusterRequest message from the specified reader or buffer.
+ * Decodes a SetLocationsRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.GetClusterRequest
+ * @memberof google.container.v1.SetLocationsRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.GetClusterRequest} GetClusterRequest
+ * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- GetClusterRequest.decode = function decode(reader, length) {
+ SetLocationsRequest.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.GetClusterRequest();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLocationsRequest();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
@@ -9070,7 +13435,12 @@
case 3:
message.clusterId = reader.string();
break;
- case 5:
+ case 4:
+ if (!(message.locations && message.locations.length))
+ message.locations = [];
+ message.locations.push(reader.string());
+ break;
+ case 6:
message.name = reader.string();
break;
default:
@@ -9082,30 +13452,30 @@
};
/**
- * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited.
+ * Decodes a SetLocationsRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.GetClusterRequest
+ * @memberof google.container.v1.SetLocationsRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.GetClusterRequest} GetClusterRequest
+ * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- GetClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ SetLocationsRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a GetClusterRequest message.
+ * Verifies a SetLocationsRequest message.
* @function verify
- * @memberof google.container.v1.GetClusterRequest
+ * @memberof google.container.v1.SetLocationsRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- GetClusterRequest.verify = function verify(message) {
+ SetLocationsRequest.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.projectId != null && message.hasOwnProperty("projectId"))
@@ -9117,6 +13487,13 @@
if (message.clusterId != null && message.hasOwnProperty("clusterId"))
if (!$util.isString(message.clusterId))
return "clusterId: string expected";
+ if (message.locations != null && message.hasOwnProperty("locations")) {
+ if (!Array.isArray(message.locations))
+ return "locations: array expected";
+ for (var i = 0; i < message.locations.length; ++i)
+ if (!$util.isString(message.locations[i]))
+ return "locations: string[] expected";
+ }
if (message.name != null && message.hasOwnProperty("name"))
if (!$util.isString(message.name))
return "name: string expected";
@@ -9124,41 +13501,50 @@
};
/**
- * Creates a GetClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a SetLocationsRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.GetClusterRequest
+ * @memberof google.container.v1.SetLocationsRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.GetClusterRequest} GetClusterRequest
+ * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest
*/
- GetClusterRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.GetClusterRequest)
+ SetLocationsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.SetLocationsRequest)
return object;
- var message = new $root.google.container.v1.GetClusterRequest();
+ var message = new $root.google.container.v1.SetLocationsRequest();
if (object.projectId != null)
message.projectId = String(object.projectId);
if (object.zone != null)
message.zone = String(object.zone);
if (object.clusterId != null)
message.clusterId = String(object.clusterId);
+ if (object.locations) {
+ if (!Array.isArray(object.locations))
+ throw TypeError(".google.container.v1.SetLocationsRequest.locations: array expected");
+ message.locations = [];
+ for (var i = 0; i < object.locations.length; ++i)
+ message.locations[i] = String(object.locations[i]);
+ }
if (object.name != null)
message.name = String(object.name);
return message;
};
/**
- * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a SetLocationsRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.GetClusterRequest
+ * @memberof google.container.v1.SetLocationsRequest
* @static
- * @param {google.container.v1.GetClusterRequest} message GetClusterRequest
+ * @param {google.container.v1.SetLocationsRequest} message SetLocationsRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- GetClusterRequest.toObject = function toObject(message, options) {
+ SetLocationsRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
+ if (options.arrays || options.defaults)
+ object.locations = [];
if (options.defaults) {
object.projectId = "";
object.zone = "";
@@ -9171,47 +13557,52 @@
object.zone = message.zone;
if (message.clusterId != null && message.hasOwnProperty("clusterId"))
object.clusterId = message.clusterId;
+ if (message.locations && message.locations.length) {
+ object.locations = [];
+ for (var j = 0; j < message.locations.length; ++j)
+ object.locations[j] = message.locations[j];
+ }
if (message.name != null && message.hasOwnProperty("name"))
object.name = message.name;
return object;
};
/**
- * Converts this GetClusterRequest to JSON.
+ * Converts this SetLocationsRequest to JSON.
* @function toJSON
- * @memberof google.container.v1.GetClusterRequest
+ * @memberof google.container.v1.SetLocationsRequest
* @instance
* @returns {Object.} JSON object
*/
- GetClusterRequest.prototype.toJSON = function toJSON() {
+ SetLocationsRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return GetClusterRequest;
+ return SetLocationsRequest;
})();
- v1.UpdateClusterRequest = (function() {
+ v1.UpdateMasterRequest = (function() {
/**
- * Properties of an UpdateClusterRequest.
+ * Properties of an UpdateMasterRequest.
* @memberof google.container.v1
- * @interface IUpdateClusterRequest
- * @property {string|null} [projectId] UpdateClusterRequest projectId
- * @property {string|null} [zone] UpdateClusterRequest zone
- * @property {string|null} [clusterId] UpdateClusterRequest clusterId
- * @property {google.container.v1.IClusterUpdate|null} [update] UpdateClusterRequest update
- * @property {string|null} [name] UpdateClusterRequest name
+ * @interface IUpdateMasterRequest
+ * @property {string|null} [projectId] UpdateMasterRequest projectId
+ * @property {string|null} [zone] UpdateMasterRequest zone
+ * @property {string|null} [clusterId] UpdateMasterRequest clusterId
+ * @property {string|null} [masterVersion] UpdateMasterRequest masterVersion
+ * @property {string|null} [name] UpdateMasterRequest name
*/
/**
- * Constructs a new UpdateClusterRequest.
+ * Constructs a new UpdateMasterRequest.
* @memberof google.container.v1
- * @classdesc Represents an UpdateClusterRequest.
- * @implements IUpdateClusterRequest
+ * @classdesc Represents an UpdateMasterRequest.
+ * @implements IUpdateMasterRequest
* @constructor
- * @param {google.container.v1.IUpdateClusterRequest=} [properties] Properties to set
+ * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set
*/
- function UpdateClusterRequest(properties) {
+ function UpdateMasterRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -9219,67 +13610,67 @@
}
/**
- * UpdateClusterRequest projectId.
+ * UpdateMasterRequest projectId.
* @member {string} projectId
- * @memberof google.container.v1.UpdateClusterRequest
+ * @memberof google.container.v1.UpdateMasterRequest
* @instance
*/
- UpdateClusterRequest.prototype.projectId = "";
+ UpdateMasterRequest.prototype.projectId = "";
/**
- * UpdateClusterRequest zone.
+ * UpdateMasterRequest zone.
* @member {string} zone
- * @memberof google.container.v1.UpdateClusterRequest
+ * @memberof google.container.v1.UpdateMasterRequest
* @instance
*/
- UpdateClusterRequest.prototype.zone = "";
+ UpdateMasterRequest.prototype.zone = "";
/**
- * UpdateClusterRequest clusterId.
+ * UpdateMasterRequest clusterId.
* @member {string} clusterId
- * @memberof google.container.v1.UpdateClusterRequest
+ * @memberof google.container.v1.UpdateMasterRequest
* @instance
*/
- UpdateClusterRequest.prototype.clusterId = "";
+ UpdateMasterRequest.prototype.clusterId = "";
/**
- * UpdateClusterRequest update.
- * @member {google.container.v1.IClusterUpdate|null|undefined} update
- * @memberof google.container.v1.UpdateClusterRequest
+ * UpdateMasterRequest masterVersion.
+ * @member {string} masterVersion
+ * @memberof google.container.v1.UpdateMasterRequest
* @instance
*/
- UpdateClusterRequest.prototype.update = null;
+ UpdateMasterRequest.prototype.masterVersion = "";
/**
- * UpdateClusterRequest name.
+ * UpdateMasterRequest name.
* @member {string} name
- * @memberof google.container.v1.UpdateClusterRequest
+ * @memberof google.container.v1.UpdateMasterRequest
* @instance
*/
- UpdateClusterRequest.prototype.name = "";
+ UpdateMasterRequest.prototype.name = "";
/**
- * Creates a new UpdateClusterRequest instance using the specified properties.
+ * Creates a new UpdateMasterRequest instance using the specified properties.
* @function create
- * @memberof google.container.v1.UpdateClusterRequest
+ * @memberof google.container.v1.UpdateMasterRequest
* @static
- * @param {google.container.v1.IUpdateClusterRequest=} [properties] Properties to set
- * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest instance
+ * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set
+ * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest instance
*/
- UpdateClusterRequest.create = function create(properties) {
- return new UpdateClusterRequest(properties);
+ UpdateMasterRequest.create = function create(properties) {
+ return new UpdateMasterRequest(properties);
};
/**
- * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.container.v1.UpdateClusterRequest.verify|verify} messages.
+ * Encodes the specified UpdateMasterRequest message. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.UpdateClusterRequest
+ * @memberof google.container.v1.UpdateMasterRequest
* @static
- * @param {google.container.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode
+ * @param {google.container.v1.IUpdateMasterRequest} message UpdateMasterRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- UpdateClusterRequest.encode = function encode(message, writer) {
+ UpdateMasterRequest.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
@@ -9288,41 +13679,41 @@
writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
- if (message.update != null && Object.hasOwnProperty.call(message, "update"))
- $root.google.container.v1.ClusterUpdate.encode(message.update, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.masterVersion != null && Object.hasOwnProperty.call(message, "masterVersion"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.masterVersion);
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.name);
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.name);
return writer;
};
/**
- * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateClusterRequest.verify|verify} messages.
+ * Encodes the specified UpdateMasterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.UpdateClusterRequest
+ * @memberof google.container.v1.UpdateMasterRequest
* @static
- * @param {google.container.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode
+ * @param {google.container.v1.IUpdateMasterRequest} message UpdateMasterRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- UpdateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ UpdateMasterRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes an UpdateClusterRequest message from the specified reader or buffer.
+ * Decodes an UpdateMasterRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.UpdateClusterRequest
+ * @memberof google.container.v1.UpdateMasterRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest
+ * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- UpdateClusterRequest.decode = function decode(reader, length) {
+ UpdateMasterRequest.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.UpdateClusterRequest();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.UpdateMasterRequest();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
@@ -9336,9 +13727,9 @@
message.clusterId = reader.string();
break;
case 4:
- message.update = $root.google.container.v1.ClusterUpdate.decode(reader, reader.uint32());
+ message.masterVersion = reader.string();
break;
- case 5:
+ case 7:
message.name = reader.string();
break;
default:
@@ -9350,30 +13741,30 @@
};
/**
- * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited.
+ * Decodes an UpdateMasterRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.UpdateClusterRequest
+ * @memberof google.container.v1.UpdateMasterRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest
+ * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- UpdateClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ UpdateMasterRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies an UpdateClusterRequest message.
+ * Verifies an UpdateMasterRequest message.
* @function verify
- * @memberof google.container.v1.UpdateClusterRequest
+ * @memberof google.container.v1.UpdateMasterRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- UpdateClusterRequest.verify = function verify(message) {
+ UpdateMasterRequest.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.projectId != null && message.hasOwnProperty("projectId"))
@@ -9385,11 +13776,9 @@
if (message.clusterId != null && message.hasOwnProperty("clusterId"))
if (!$util.isString(message.clusterId))
return "clusterId: string expected";
- if (message.update != null && message.hasOwnProperty("update")) {
- var error = $root.google.container.v1.ClusterUpdate.verify(message.update);
- if (error)
- return "update." + error;
- }
+ if (message.masterVersion != null && message.hasOwnProperty("masterVersion"))
+ if (!$util.isString(message.masterVersion))
+ return "masterVersion: string expected";
if (message.name != null && message.hasOwnProperty("name"))
if (!$util.isString(message.name))
return "name: string expected";
@@ -9397,43 +13786,40 @@
};
/**
- * Creates an UpdateClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates an UpdateMasterRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.UpdateClusterRequest
+ * @memberof google.container.v1.UpdateMasterRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest
+ * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest
*/
- UpdateClusterRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.UpdateClusterRequest)
+ UpdateMasterRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.UpdateMasterRequest)
return object;
- var message = new $root.google.container.v1.UpdateClusterRequest();
+ var message = new $root.google.container.v1.UpdateMasterRequest();
if (object.projectId != null)
message.projectId = String(object.projectId);
if (object.zone != null)
message.zone = String(object.zone);
if (object.clusterId != null)
message.clusterId = String(object.clusterId);
- if (object.update != null) {
- if (typeof object.update !== "object")
- throw TypeError(".google.container.v1.UpdateClusterRequest.update: object expected");
- message.update = $root.google.container.v1.ClusterUpdate.fromObject(object.update);
- }
+ if (object.masterVersion != null)
+ message.masterVersion = String(object.masterVersion);
if (object.name != null)
message.name = String(object.name);
return message;
};
/**
- * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified.
+ * Creates a plain object from an UpdateMasterRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.UpdateClusterRequest
+ * @memberof google.container.v1.UpdateMasterRequest
* @static
- * @param {google.container.v1.UpdateClusterRequest} message UpdateClusterRequest
+ * @param {google.container.v1.UpdateMasterRequest} message UpdateMasterRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- UpdateClusterRequest.toObject = function toObject(message, options) {
+ UpdateMasterRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
@@ -9441,7 +13827,7 @@
object.projectId = "";
object.zone = "";
object.clusterId = "";
- object.update = null;
+ object.masterVersion = "";
object.name = "";
}
if (message.projectId != null && message.hasOwnProperty("projectId"))
@@ -9450,51 +13836,50 @@
object.zone = message.zone;
if (message.clusterId != null && message.hasOwnProperty("clusterId"))
object.clusterId = message.clusterId;
- if (message.update != null && message.hasOwnProperty("update"))
- object.update = $root.google.container.v1.ClusterUpdate.toObject(message.update, options);
+ if (message.masterVersion != null && message.hasOwnProperty("masterVersion"))
+ object.masterVersion = message.masterVersion;
if (message.name != null && message.hasOwnProperty("name"))
object.name = message.name;
return object;
};
/**
- * Converts this UpdateClusterRequest to JSON.
+ * Converts this UpdateMasterRequest to JSON.
* @function toJSON
- * @memberof google.container.v1.UpdateClusterRequest
+ * @memberof google.container.v1.UpdateMasterRequest
* @instance
* @returns {Object.} JSON object
*/
- UpdateClusterRequest.prototype.toJSON = function toJSON() {
+ UpdateMasterRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return UpdateClusterRequest;
+ return UpdateMasterRequest;
})();
- v1.UpdateNodePoolRequest = (function() {
+ v1.SetMasterAuthRequest = (function() {
/**
- * Properties of an UpdateNodePoolRequest.
+ * Properties of a SetMasterAuthRequest.
* @memberof google.container.v1
- * @interface IUpdateNodePoolRequest
- * @property {string|null} [projectId] UpdateNodePoolRequest projectId
- * @property {string|null} [zone] UpdateNodePoolRequest zone
- * @property {string|null} [clusterId] UpdateNodePoolRequest clusterId
- * @property {string|null} [nodePoolId] UpdateNodePoolRequest nodePoolId
- * @property {string|null} [nodeVersion] UpdateNodePoolRequest nodeVersion
- * @property {string|null} [imageType] UpdateNodePoolRequest imageType
- * @property {string|null} [name] UpdateNodePoolRequest name
+ * @interface ISetMasterAuthRequest
+ * @property {string|null} [projectId] SetMasterAuthRequest projectId
+ * @property {string|null} [zone] SetMasterAuthRequest zone
+ * @property {string|null} [clusterId] SetMasterAuthRequest clusterId
+ * @property {google.container.v1.SetMasterAuthRequest.Action|null} [action] SetMasterAuthRequest action
+ * @property {google.container.v1.IMasterAuth|null} [update] SetMasterAuthRequest update
+ * @property {string|null} [name] SetMasterAuthRequest name
*/
/**
- * Constructs a new UpdateNodePoolRequest.
+ * Constructs a new SetMasterAuthRequest.
* @memberof google.container.v1
- * @classdesc Represents an UpdateNodePoolRequest.
- * @implements IUpdateNodePoolRequest
+ * @classdesc Represents a SetMasterAuthRequest.
+ * @implements ISetMasterAuthRequest
* @constructor
- * @param {google.container.v1.IUpdateNodePoolRequest=} [properties] Properties to set
+ * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set
*/
- function UpdateNodePoolRequest(properties) {
+ function SetMasterAuthRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -9502,83 +13887,75 @@
}
/**
- * UpdateNodePoolRequest projectId.
+ * SetMasterAuthRequest projectId.
* @member {string} projectId
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * @memberof google.container.v1.SetMasterAuthRequest
* @instance
*/
- UpdateNodePoolRequest.prototype.projectId = "";
+ SetMasterAuthRequest.prototype.projectId = "";
/**
- * UpdateNodePoolRequest zone.
+ * SetMasterAuthRequest zone.
* @member {string} zone
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * @memberof google.container.v1.SetMasterAuthRequest
* @instance
*/
- UpdateNodePoolRequest.prototype.zone = "";
+ SetMasterAuthRequest.prototype.zone = "";
/**
- * UpdateNodePoolRequest clusterId.
+ * SetMasterAuthRequest clusterId.
* @member {string} clusterId
- * @memberof google.container.v1.UpdateNodePoolRequest
- * @instance
- */
- UpdateNodePoolRequest.prototype.clusterId = "";
-
- /**
- * UpdateNodePoolRequest nodePoolId.
- * @member {string} nodePoolId
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * @memberof google.container.v1.SetMasterAuthRequest
* @instance
*/
- UpdateNodePoolRequest.prototype.nodePoolId = "";
+ SetMasterAuthRequest.prototype.clusterId = "";
/**
- * UpdateNodePoolRequest nodeVersion.
- * @member {string} nodeVersion
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * SetMasterAuthRequest action.
+ * @member {google.container.v1.SetMasterAuthRequest.Action} action
+ * @memberof google.container.v1.SetMasterAuthRequest
* @instance
*/
- UpdateNodePoolRequest.prototype.nodeVersion = "";
+ SetMasterAuthRequest.prototype.action = 0;
/**
- * UpdateNodePoolRequest imageType.
- * @member {string} imageType
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * SetMasterAuthRequest update.
+ * @member {google.container.v1.IMasterAuth|null|undefined} update
+ * @memberof google.container.v1.SetMasterAuthRequest
* @instance
*/
- UpdateNodePoolRequest.prototype.imageType = "";
+ SetMasterAuthRequest.prototype.update = null;
/**
- * UpdateNodePoolRequest name.
+ * SetMasterAuthRequest name.
* @member {string} name
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * @memberof google.container.v1.SetMasterAuthRequest
* @instance
*/
- UpdateNodePoolRequest.prototype.name = "";
+ SetMasterAuthRequest.prototype.name = "";
/**
- * Creates a new UpdateNodePoolRequest instance using the specified properties.
+ * Creates a new SetMasterAuthRequest instance using the specified properties.
* @function create
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * @memberof google.container.v1.SetMasterAuthRequest
* @static
- * @param {google.container.v1.IUpdateNodePoolRequest=} [properties] Properties to set
- * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest instance
+ * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set
+ * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest instance
*/
- UpdateNodePoolRequest.create = function create(properties) {
- return new UpdateNodePoolRequest(properties);
+ SetMasterAuthRequest.create = function create(properties) {
+ return new SetMasterAuthRequest(properties);
};
/**
- * Encodes the specified UpdateNodePoolRequest message. Does not implicitly {@link google.container.v1.UpdateNodePoolRequest.verify|verify} messages.
+ * Encodes the specified SetMasterAuthRequest message. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * @memberof google.container.v1.SetMasterAuthRequest
* @static
- * @param {google.container.v1.IUpdateNodePoolRequest} message UpdateNodePoolRequest message or plain object to encode
+ * @param {google.container.v1.ISetMasterAuthRequest} message SetMasterAuthRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- UpdateNodePoolRequest.encode = function encode(message, writer) {
+ SetMasterAuthRequest.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
@@ -9587,45 +13964,43 @@
writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
- if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId);
- if (message.nodeVersion != null && Object.hasOwnProperty.call(message, "nodeVersion"))
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeVersion);
- if (message.imageType != null && Object.hasOwnProperty.call(message, "imageType"))
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.imageType);
+ if (message.action != null && Object.hasOwnProperty.call(message, "action"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.action);
+ if (message.update != null && Object.hasOwnProperty.call(message, "update"))
+ $root.google.container.v1.MasterAuth.encode(message.update, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 8, wireType 2 =*/66).string(message.name);
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.name);
return writer;
};
/**
- * Encodes the specified UpdateNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateNodePoolRequest.verify|verify} messages.
+ * Encodes the specified SetMasterAuthRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * @memberof google.container.v1.SetMasterAuthRequest
* @static
- * @param {google.container.v1.IUpdateNodePoolRequest} message UpdateNodePoolRequest message or plain object to encode
+ * @param {google.container.v1.ISetMasterAuthRequest} message SetMasterAuthRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- UpdateNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ SetMasterAuthRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes an UpdateNodePoolRequest message from the specified reader or buffer.
+ * Decodes a SetMasterAuthRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * @memberof google.container.v1.SetMasterAuthRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest
+ * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- UpdateNodePoolRequest.decode = function decode(reader, length) {
+ SetMasterAuthRequest.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.UpdateNodePoolRequest();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetMasterAuthRequest();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
@@ -9639,15 +14014,12 @@
message.clusterId = reader.string();
break;
case 4:
- message.nodePoolId = reader.string();
+ message.action = reader.int32();
break;
case 5:
- message.nodeVersion = reader.string();
- break;
- case 6:
- message.imageType = reader.string();
+ message.update = $root.google.container.v1.MasterAuth.decode(reader, reader.uint32());
break;
- case 8:
+ case 7:
message.name = reader.string();
break;
default:
@@ -9659,30 +14031,30 @@
};
/**
- * Decodes an UpdateNodePoolRequest message from the specified reader or buffer, length delimited.
+ * Decodes a SetMasterAuthRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * @memberof google.container.v1.SetMasterAuthRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest
+ * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- UpdateNodePoolRequest.decodeDelimited = function decodeDelimited(reader) {
+ SetMasterAuthRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies an UpdateNodePoolRequest message.
+ * Verifies a SetMasterAuthRequest message.
* @function verify
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * @memberof google.container.v1.SetMasterAuthRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- UpdateNodePoolRequest.verify = function verify(message) {
+ SetMasterAuthRequest.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.projectId != null && message.hasOwnProperty("projectId"))
@@ -9694,15 +14066,21 @@
if (message.clusterId != null && message.hasOwnProperty("clusterId"))
if (!$util.isString(message.clusterId))
return "clusterId: string expected";
- if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId"))
- if (!$util.isString(message.nodePoolId))
- return "nodePoolId: string expected";
- if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion"))
- if (!$util.isString(message.nodeVersion))
- return "nodeVersion: string expected";
- if (message.imageType != null && message.hasOwnProperty("imageType"))
- if (!$util.isString(message.imageType))
- return "imageType: string expected";
+ if (message.action != null && message.hasOwnProperty("action"))
+ switch (message.action) {
+ default:
+ return "action: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ if (message.update != null && message.hasOwnProperty("update")) {
+ var error = $root.google.container.v1.MasterAuth.verify(message.update);
+ if (error)
+ return "update." + error;
+ }
if (message.name != null && message.hasOwnProperty("name"))
if (!$util.isString(message.name))
return "name: string expected";
@@ -9710,44 +14088,61 @@
};
/**
- * Creates an UpdateNodePoolRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a SetMasterAuthRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * @memberof google.container.v1.SetMasterAuthRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest
+ * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest
*/
- UpdateNodePoolRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.UpdateNodePoolRequest)
+ SetMasterAuthRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.SetMasterAuthRequest)
return object;
- var message = new $root.google.container.v1.UpdateNodePoolRequest();
+ var message = new $root.google.container.v1.SetMasterAuthRequest();
if (object.projectId != null)
message.projectId = String(object.projectId);
if (object.zone != null)
message.zone = String(object.zone);
if (object.clusterId != null)
message.clusterId = String(object.clusterId);
- if (object.nodePoolId != null)
- message.nodePoolId = String(object.nodePoolId);
- if (object.nodeVersion != null)
- message.nodeVersion = String(object.nodeVersion);
- if (object.imageType != null)
- message.imageType = String(object.imageType);
+ switch (object.action) {
+ case "UNKNOWN":
+ case 0:
+ message.action = 0;
+ break;
+ case "SET_PASSWORD":
+ case 1:
+ message.action = 1;
+ break;
+ case "GENERATE_PASSWORD":
+ case 2:
+ message.action = 2;
+ break;
+ case "SET_USERNAME":
+ case 3:
+ message.action = 3;
+ break;
+ }
+ if (object.update != null) {
+ if (typeof object.update !== "object")
+ throw TypeError(".google.container.v1.SetMasterAuthRequest.update: object expected");
+ message.update = $root.google.container.v1.MasterAuth.fromObject(object.update);
+ }
if (object.name != null)
message.name = String(object.name);
return message;
};
/**
- * Creates a plain object from an UpdateNodePoolRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a SetMasterAuthRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * @memberof google.container.v1.SetMasterAuthRequest
* @static
- * @param {google.container.v1.UpdateNodePoolRequest} message UpdateNodePoolRequest
+ * @param {google.container.v1.SetMasterAuthRequest} message SetMasterAuthRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- UpdateNodePoolRequest.toObject = function toObject(message, options) {
+ SetMasterAuthRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
@@ -9755,9 +14150,8 @@
object.projectId = "";
object.zone = "";
object.clusterId = "";
- object.nodePoolId = "";
- object.nodeVersion = "";
- object.imageType = "";
+ object.action = options.enums === String ? "UNKNOWN" : 0;
+ object.update = null;
object.name = "";
}
if (message.projectId != null && message.hasOwnProperty("projectId"))
@@ -9766,54 +14160,68 @@
object.zone = message.zone;
if (message.clusterId != null && message.hasOwnProperty("clusterId"))
object.clusterId = message.clusterId;
- if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId"))
- object.nodePoolId = message.nodePoolId;
- if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion"))
- object.nodeVersion = message.nodeVersion;
- if (message.imageType != null && message.hasOwnProperty("imageType"))
- object.imageType = message.imageType;
+ if (message.action != null && message.hasOwnProperty("action"))
+ object.action = options.enums === String ? $root.google.container.v1.SetMasterAuthRequest.Action[message.action] : message.action;
+ if (message.update != null && message.hasOwnProperty("update"))
+ object.update = $root.google.container.v1.MasterAuth.toObject(message.update, options);
if (message.name != null && message.hasOwnProperty("name"))
object.name = message.name;
return object;
};
/**
- * Converts this UpdateNodePoolRequest to JSON.
+ * Converts this SetMasterAuthRequest to JSON.
* @function toJSON
- * @memberof google.container.v1.UpdateNodePoolRequest
+ * @memberof google.container.v1.SetMasterAuthRequest
* @instance
* @returns {Object.} JSON object
*/
- UpdateNodePoolRequest.prototype.toJSON = function toJSON() {
+ SetMasterAuthRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return UpdateNodePoolRequest;
+ /**
+ * Action enum.
+ * @name google.container.v1.SetMasterAuthRequest.Action
+ * @enum {number}
+ * @property {number} UNKNOWN=0 UNKNOWN value
+ * @property {number} SET_PASSWORD=1 SET_PASSWORD value
+ * @property {number} GENERATE_PASSWORD=2 GENERATE_PASSWORD value
+ * @property {number} SET_USERNAME=3 SET_USERNAME value
+ */
+ SetMasterAuthRequest.Action = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "UNKNOWN"] = 0;
+ values[valuesById[1] = "SET_PASSWORD"] = 1;
+ values[valuesById[2] = "GENERATE_PASSWORD"] = 2;
+ values[valuesById[3] = "SET_USERNAME"] = 3;
+ return values;
+ })();
+
+ return SetMasterAuthRequest;
})();
- v1.SetNodePoolAutoscalingRequest = (function() {
+ v1.DeleteClusterRequest = (function() {
/**
- * Properties of a SetNodePoolAutoscalingRequest.
+ * Properties of a DeleteClusterRequest.
* @memberof google.container.v1
- * @interface ISetNodePoolAutoscalingRequest
- * @property {string|null} [projectId] SetNodePoolAutoscalingRequest projectId
- * @property {string|null} [zone] SetNodePoolAutoscalingRequest zone
- * @property {string|null} [clusterId] SetNodePoolAutoscalingRequest clusterId
- * @property {string|null} [nodePoolId] SetNodePoolAutoscalingRequest nodePoolId
- * @property {google.container.v1.INodePoolAutoscaling|null} [autoscaling] SetNodePoolAutoscalingRequest autoscaling
- * @property {string|null} [name] SetNodePoolAutoscalingRequest name
+ * @interface IDeleteClusterRequest
+ * @property {string|null} [projectId] DeleteClusterRequest projectId
+ * @property {string|null} [zone] DeleteClusterRequest zone
+ * @property {string|null} [clusterId] DeleteClusterRequest clusterId
+ * @property {string|null} [name] DeleteClusterRequest name
*/
/**
- * Constructs a new SetNodePoolAutoscalingRequest.
+ * Constructs a new DeleteClusterRequest.
* @memberof google.container.v1
- * @classdesc Represents a SetNodePoolAutoscalingRequest.
- * @implements ISetNodePoolAutoscalingRequest
+ * @classdesc Represents a DeleteClusterRequest.
+ * @implements IDeleteClusterRequest
* @constructor
- * @param {google.container.v1.ISetNodePoolAutoscalingRequest=} [properties] Properties to set
+ * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set
*/
- function SetNodePoolAutoscalingRequest(properties) {
+ function DeleteClusterRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -9821,75 +14229,59 @@
}
/**
- * SetNodePoolAutoscalingRequest projectId.
+ * DeleteClusterRequest projectId.
* @member {string} projectId
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @memberof google.container.v1.DeleteClusterRequest
* @instance
*/
- SetNodePoolAutoscalingRequest.prototype.projectId = "";
+ DeleteClusterRequest.prototype.projectId = "";
/**
- * SetNodePoolAutoscalingRequest zone.
+ * DeleteClusterRequest zone.
* @member {string} zone
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @memberof google.container.v1.DeleteClusterRequest
* @instance
*/
- SetNodePoolAutoscalingRequest.prototype.zone = "";
+ DeleteClusterRequest.prototype.zone = "";
/**
- * SetNodePoolAutoscalingRequest clusterId.
+ * DeleteClusterRequest clusterId.
* @member {string} clusterId
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
- * @instance
- */
- SetNodePoolAutoscalingRequest.prototype.clusterId = "";
-
- /**
- * SetNodePoolAutoscalingRequest nodePoolId.
- * @member {string} nodePoolId
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
- * @instance
- */
- SetNodePoolAutoscalingRequest.prototype.nodePoolId = "";
-
- /**
- * SetNodePoolAutoscalingRequest autoscaling.
- * @member {google.container.v1.INodePoolAutoscaling|null|undefined} autoscaling
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @memberof google.container.v1.DeleteClusterRequest
* @instance
*/
- SetNodePoolAutoscalingRequest.prototype.autoscaling = null;
+ DeleteClusterRequest.prototype.clusterId = "";
/**
- * SetNodePoolAutoscalingRequest name.
+ * DeleteClusterRequest name.
* @member {string} name
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @memberof google.container.v1.DeleteClusterRequest
* @instance
*/
- SetNodePoolAutoscalingRequest.prototype.name = "";
+ DeleteClusterRequest.prototype.name = "";
/**
- * Creates a new SetNodePoolAutoscalingRequest instance using the specified properties.
+ * Creates a new DeleteClusterRequest instance using the specified properties.
* @function create
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @memberof google.container.v1.DeleteClusterRequest
* @static
- * @param {google.container.v1.ISetNodePoolAutoscalingRequest=} [properties] Properties to set
- * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest instance
+ * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set
+ * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest instance
*/
- SetNodePoolAutoscalingRequest.create = function create(properties) {
- return new SetNodePoolAutoscalingRequest(properties);
+ DeleteClusterRequest.create = function create(properties) {
+ return new DeleteClusterRequest(properties);
};
/**
- * Encodes the specified SetNodePoolAutoscalingRequest message. Does not implicitly {@link google.container.v1.SetNodePoolAutoscalingRequest.verify|verify} messages.
+ * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @memberof google.container.v1.DeleteClusterRequest
* @static
- * @param {google.container.v1.ISetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest message or plain object to encode
+ * @param {google.container.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- SetNodePoolAutoscalingRequest.encode = function encode(message, writer) {
+ DeleteClusterRequest.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
@@ -9898,43 +14290,39 @@
writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
- if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId);
- if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling"))
- $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.name);
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.name);
return writer;
};
/**
- * Encodes the specified SetNodePoolAutoscalingRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolAutoscalingRequest.verify|verify} messages.
+ * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @memberof google.container.v1.DeleteClusterRequest
* @static
- * @param {google.container.v1.ISetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest message or plain object to encode
+ * @param {google.container.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- SetNodePoolAutoscalingRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ DeleteClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a SetNodePoolAutoscalingRequest message from the specified reader or buffer.
+ * Decodes a DeleteClusterRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @memberof google.container.v1.DeleteClusterRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest
+ * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- SetNodePoolAutoscalingRequest.decode = function decode(reader, length) {
+ DeleteClusterRequest.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.SetNodePoolAutoscalingRequest();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DeleteClusterRequest();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
@@ -9948,12 +14336,6 @@
message.clusterId = reader.string();
break;
case 4:
- message.nodePoolId = reader.string();
- break;
- case 5:
- message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32());
- break;
- case 6:
message.name = reader.string();
break;
default:
@@ -9965,30 +14347,30 @@
};
/**
- * Decodes a SetNodePoolAutoscalingRequest message from the specified reader or buffer, length delimited.
+ * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @memberof google.container.v1.DeleteClusterRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest
+ * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- SetNodePoolAutoscalingRequest.decodeDelimited = function decodeDelimited(reader) {
+ DeleteClusterRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a SetNodePoolAutoscalingRequest message.
+ * Verifies a DeleteClusterRequest message.
* @function verify
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @memberof google.container.v1.DeleteClusterRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- SetNodePoolAutoscalingRequest.verify = function verify(message) {
+ DeleteClusterRequest.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.projectId != null && message.hasOwnProperty("projectId"))
@@ -10000,14 +14382,6 @@
if (message.clusterId != null && message.hasOwnProperty("clusterId"))
if (!$util.isString(message.clusterId))
return "clusterId: string expected";
- if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId"))
- if (!$util.isString(message.nodePoolId))
- return "nodePoolId: string expected";
- if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) {
- var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.autoscaling);
- if (error)
- return "autoscaling." + error;
- }
if (message.name != null && message.hasOwnProperty("name"))
if (!$util.isString(message.name))
return "name: string expected";
@@ -10015,45 +14389,38 @@
};
/**
- * Creates a SetNodePoolAutoscalingRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @memberof google.container.v1.DeleteClusterRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest
+ * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest
*/
- SetNodePoolAutoscalingRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.SetNodePoolAutoscalingRequest)
+ DeleteClusterRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.DeleteClusterRequest)
return object;
- var message = new $root.google.container.v1.SetNodePoolAutoscalingRequest();
+ var message = new $root.google.container.v1.DeleteClusterRequest();
if (object.projectId != null)
message.projectId = String(object.projectId);
if (object.zone != null)
message.zone = String(object.zone);
if (object.clusterId != null)
message.clusterId = String(object.clusterId);
- if (object.nodePoolId != null)
- message.nodePoolId = String(object.nodePoolId);
- if (object.autoscaling != null) {
- if (typeof object.autoscaling !== "object")
- throw TypeError(".google.container.v1.SetNodePoolAutoscalingRequest.autoscaling: object expected");
- message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.autoscaling);
- }
if (object.name != null)
message.name = String(object.name);
return message;
};
/**
- * Creates a plain object from a SetNodePoolAutoscalingRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @memberof google.container.v1.DeleteClusterRequest
* @static
- * @param {google.container.v1.SetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest
+ * @param {google.container.v1.DeleteClusterRequest} message DeleteClusterRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- SetNodePoolAutoscalingRequest.toObject = function toObject(message, options) {
+ DeleteClusterRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
@@ -10061,8 +14428,6 @@
object.projectId = "";
object.zone = "";
object.clusterId = "";
- object.nodePoolId = "";
- object.autoscaling = null;
object.name = "";
}
if (message.projectId != null && message.hasOwnProperty("projectId"))
@@ -10071,51 +14436,45 @@
object.zone = message.zone;
if (message.clusterId != null && message.hasOwnProperty("clusterId"))
object.clusterId = message.clusterId;
- if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId"))
- object.nodePoolId = message.nodePoolId;
- if (message.autoscaling != null && message.hasOwnProperty("autoscaling"))
- object.autoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.autoscaling, options);
if (message.name != null && message.hasOwnProperty("name"))
object.name = message.name;
return object;
};
/**
- * Converts this SetNodePoolAutoscalingRequest to JSON.
+ * Converts this DeleteClusterRequest to JSON.
* @function toJSON
- * @memberof google.container.v1.SetNodePoolAutoscalingRequest
+ * @memberof google.container.v1.DeleteClusterRequest
* @instance
* @returns {Object.} JSON object
*/
- SetNodePoolAutoscalingRequest.prototype.toJSON = function toJSON() {
+ DeleteClusterRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return SetNodePoolAutoscalingRequest;
+ return DeleteClusterRequest;
})();
- v1.SetLoggingServiceRequest = (function() {
+ v1.ListClustersRequest = (function() {
/**
- * Properties of a SetLoggingServiceRequest.
+ * Properties of a ListClustersRequest.
* @memberof google.container.v1
- * @interface ISetLoggingServiceRequest
- * @property {string|null} [projectId] SetLoggingServiceRequest projectId
- * @property {string|null} [zone] SetLoggingServiceRequest zone
- * @property {string|null} [clusterId] SetLoggingServiceRequest clusterId
- * @property {string|null} [loggingService] SetLoggingServiceRequest loggingService
- * @property {string|null} [name] SetLoggingServiceRequest name
+ * @interface IListClustersRequest
+ * @property {string|null} [projectId] ListClustersRequest projectId
+ * @property {string|null} [zone] ListClustersRequest zone
+ * @property {string|null} [parent] ListClustersRequest parent
*/
/**
- * Constructs a new SetLoggingServiceRequest.
+ * Constructs a new ListClustersRequest.
* @memberof google.container.v1
- * @classdesc Represents a SetLoggingServiceRequest.
- * @implements ISetLoggingServiceRequest
+ * @classdesc Represents a ListClustersRequest.
+ * @implements IListClustersRequest
* @constructor
- * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set
+ * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set
*/
- function SetLoggingServiceRequest(properties) {
+ function ListClustersRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -10123,110 +14482,90 @@
}
/**
- * SetLoggingServiceRequest projectId.
+ * ListClustersRequest projectId.
* @member {string} projectId
- * @memberof google.container.v1.SetLoggingServiceRequest
+ * @memberof google.container.v1.ListClustersRequest
* @instance
*/
- SetLoggingServiceRequest.prototype.projectId = "";
+ ListClustersRequest.prototype.projectId = "";
/**
- * SetLoggingServiceRequest zone.
+ * ListClustersRequest zone.
* @member {string} zone
- * @memberof google.container.v1.SetLoggingServiceRequest
- * @instance
- */
- SetLoggingServiceRequest.prototype.zone = "";
-
- /**
- * SetLoggingServiceRequest clusterId.
- * @member {string} clusterId
- * @memberof google.container.v1.SetLoggingServiceRequest
- * @instance
- */
- SetLoggingServiceRequest.prototype.clusterId = "";
-
- /**
- * SetLoggingServiceRequest loggingService.
- * @member {string} loggingService
- * @memberof google.container.v1.SetLoggingServiceRequest
+ * @memberof google.container.v1.ListClustersRequest
* @instance
*/
- SetLoggingServiceRequest.prototype.loggingService = "";
+ ListClustersRequest.prototype.zone = "";
/**
- * SetLoggingServiceRequest name.
- * @member {string} name
- * @memberof google.container.v1.SetLoggingServiceRequest
+ * ListClustersRequest parent.
+ * @member {string} parent
+ * @memberof google.container.v1.ListClustersRequest
* @instance
*/
- SetLoggingServiceRequest.prototype.name = "";
+ ListClustersRequest.prototype.parent = "";
/**
- * Creates a new SetLoggingServiceRequest instance using the specified properties.
+ * Creates a new ListClustersRequest instance using the specified properties.
* @function create
- * @memberof google.container.v1.SetLoggingServiceRequest
+ * @memberof google.container.v1.ListClustersRequest
* @static
- * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set
- * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest instance
+ * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set
+ * @returns {google.container.v1.ListClustersRequest} ListClustersRequest instance
*/
- SetLoggingServiceRequest.create = function create(properties) {
- return new SetLoggingServiceRequest(properties);
+ ListClustersRequest.create = function create(properties) {
+ return new ListClustersRequest(properties);
};
/**
- * Encodes the specified SetLoggingServiceRequest message. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages.
+ * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.SetLoggingServiceRequest
+ * @memberof google.container.v1.ListClustersRequest
* @static
- * @param {google.container.v1.ISetLoggingServiceRequest} message SetLoggingServiceRequest message or plain object to encode
+ * @param {google.container.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- SetLoggingServiceRequest.encode = function encode(message, writer) {
+ ListClustersRequest.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
- if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
- if (message.loggingService != null && Object.hasOwnProperty.call(message, "loggingService"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.loggingService);
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.name);
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent);
return writer;
};
/**
- * Encodes the specified SetLoggingServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages.
+ * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.SetLoggingServiceRequest
+ * @memberof google.container.v1.ListClustersRequest
* @static
- * @param {google.container.v1.ISetLoggingServiceRequest} message SetLoggingServiceRequest message or plain object to encode
+ * @param {google.container.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- SetLoggingServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ ListClustersRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a SetLoggingServiceRequest message from the specified reader or buffer.
+ * Decodes a ListClustersRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.SetLoggingServiceRequest
+ * @memberof google.container.v1.ListClustersRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest
+ * @returns {google.container.v1.ListClustersRequest} ListClustersRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- SetLoggingServiceRequest.decode = function decode(reader, length) {
+ ListClustersRequest.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.SetLoggingServiceRequest();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListClustersRequest();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
@@ -10236,14 +14575,8 @@
case 2:
message.zone = reader.string();
break;
- case 3:
- message.clusterId = reader.string();
- break;
case 4:
- message.loggingService = reader.string();
- break;
- case 5:
- message.name = reader.string();
+ message.parent = reader.string();
break;
default:
reader.skipType(tag & 7);
@@ -10254,30 +14587,30 @@
};
/**
- * Decodes a SetLoggingServiceRequest message from the specified reader or buffer, length delimited.
+ * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.SetLoggingServiceRequest
+ * @memberof google.container.v1.ListClustersRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest
+ * @returns {google.container.v1.ListClustersRequest} ListClustersRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- SetLoggingServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ ListClustersRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a SetLoggingServiceRequest message.
+ * Verifies a ListClustersRequest message.
* @function verify
- * @memberof google.container.v1.SetLoggingServiceRequest
+ * @memberof google.container.v1.ListClustersRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- SetLoggingServiceRequest.verify = function verify(message) {
+ ListClustersRequest.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.projectId != null && message.hasOwnProperty("projectId"))
@@ -10285,113 +14618,96 @@
return "projectId: string expected";
if (message.zone != null && message.hasOwnProperty("zone"))
if (!$util.isString(message.zone))
- return "zone: string expected";
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- if (!$util.isString(message.clusterId))
- return "clusterId: string expected";
- if (message.loggingService != null && message.hasOwnProperty("loggingService"))
- if (!$util.isString(message.loggingService))
- return "loggingService: string expected";
- if (message.name != null && message.hasOwnProperty("name"))
- if (!$util.isString(message.name))
- return "name: string expected";
+ return "zone: string expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
return null;
};
/**
- * Creates a SetLoggingServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.SetLoggingServiceRequest
+ * @memberof google.container.v1.ListClustersRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest
+ * @returns {google.container.v1.ListClustersRequest} ListClustersRequest
*/
- SetLoggingServiceRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.SetLoggingServiceRequest)
+ ListClustersRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.ListClustersRequest)
return object;
- var message = new $root.google.container.v1.SetLoggingServiceRequest();
+ var message = new $root.google.container.v1.ListClustersRequest();
if (object.projectId != null)
message.projectId = String(object.projectId);
if (object.zone != null)
message.zone = String(object.zone);
- if (object.clusterId != null)
- message.clusterId = String(object.clusterId);
- if (object.loggingService != null)
- message.loggingService = String(object.loggingService);
- if (object.name != null)
- message.name = String(object.name);
+ if (object.parent != null)
+ message.parent = String(object.parent);
return message;
};
/**
- * Creates a plain object from a SetLoggingServiceRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.SetLoggingServiceRequest
+ * @memberof google.container.v1.ListClustersRequest
* @static
- * @param {google.container.v1.SetLoggingServiceRequest} message SetLoggingServiceRequest
+ * @param {google.container.v1.ListClustersRequest} message ListClustersRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- SetLoggingServiceRequest.toObject = function toObject(message, options) {
+ ListClustersRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
object.projectId = "";
object.zone = "";
- object.clusterId = "";
- object.loggingService = "";
- object.name = "";
+ object.parent = "";
}
if (message.projectId != null && message.hasOwnProperty("projectId"))
object.projectId = message.projectId;
if (message.zone != null && message.hasOwnProperty("zone"))
object.zone = message.zone;
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- object.clusterId = message.clusterId;
- if (message.loggingService != null && message.hasOwnProperty("loggingService"))
- object.loggingService = message.loggingService;
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
return object;
};
/**
- * Converts this SetLoggingServiceRequest to JSON.
+ * Converts this ListClustersRequest to JSON.
* @function toJSON
- * @memberof google.container.v1.SetLoggingServiceRequest
+ * @memberof google.container.v1.ListClustersRequest
* @instance
* @returns {Object.} JSON object
*/
- SetLoggingServiceRequest.prototype.toJSON = function toJSON() {
+ ListClustersRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return SetLoggingServiceRequest;
+ return ListClustersRequest;
})();
- v1.SetMonitoringServiceRequest = (function() {
+ v1.ListClustersResponse = (function() {
/**
- * Properties of a SetMonitoringServiceRequest.
+ * Properties of a ListClustersResponse.
* @memberof google.container.v1
- * @interface ISetMonitoringServiceRequest
- * @property {string|null} [projectId] SetMonitoringServiceRequest projectId
- * @property {string|null} [zone] SetMonitoringServiceRequest zone
- * @property {string|null} [clusterId] SetMonitoringServiceRequest clusterId
- * @property {string|null} [monitoringService] SetMonitoringServiceRequest monitoringService
- * @property {string|null} [name] SetMonitoringServiceRequest name
+ * @interface IListClustersResponse
+ * @property {Array.|null} [clusters] ListClustersResponse clusters
+ * @property {Array.|null} [missingZones] ListClustersResponse missingZones
*/
/**
- * Constructs a new SetMonitoringServiceRequest.
+ * Constructs a new ListClustersResponse.
* @memberof google.container.v1
- * @classdesc Represents a SetMonitoringServiceRequest.
- * @implements ISetMonitoringServiceRequest
+ * @classdesc Represents a ListClustersResponse.
+ * @implements IListClustersResponse
* @constructor
- * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set
+ * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set
*/
- function SetMonitoringServiceRequest(properties) {
+ function ListClustersResponse(properties) {
+ this.clusters = [];
+ this.missingZones = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -10399,127 +14715,94 @@
}
/**
- * SetMonitoringServiceRequest projectId.
- * @member {string} projectId
- * @memberof google.container.v1.SetMonitoringServiceRequest
- * @instance
- */
- SetMonitoringServiceRequest.prototype.projectId = "";
-
- /**
- * SetMonitoringServiceRequest zone.
- * @member {string} zone
- * @memberof google.container.v1.SetMonitoringServiceRequest
- * @instance
- */
- SetMonitoringServiceRequest.prototype.zone = "";
-
- /**
- * SetMonitoringServiceRequest clusterId.
- * @member {string} clusterId
- * @memberof google.container.v1.SetMonitoringServiceRequest
- * @instance
- */
- SetMonitoringServiceRequest.prototype.clusterId = "";
-
- /**
- * SetMonitoringServiceRequest monitoringService.
- * @member {string} monitoringService
- * @memberof google.container.v1.SetMonitoringServiceRequest
+ * ListClustersResponse clusters.
+ * @member {Array.} clusters
+ * @memberof google.container.v1.ListClustersResponse
* @instance
*/
- SetMonitoringServiceRequest.prototype.monitoringService = "";
+ ListClustersResponse.prototype.clusters = $util.emptyArray;
/**
- * SetMonitoringServiceRequest name.
- * @member {string} name
- * @memberof google.container.v1.SetMonitoringServiceRequest
+ * ListClustersResponse missingZones.
+ * @member {Array.} missingZones
+ * @memberof google.container.v1.ListClustersResponse
* @instance
*/
- SetMonitoringServiceRequest.prototype.name = "";
+ ListClustersResponse.prototype.missingZones = $util.emptyArray;
/**
- * Creates a new SetMonitoringServiceRequest instance using the specified properties.
+ * Creates a new ListClustersResponse instance using the specified properties.
* @function create
- * @memberof google.container.v1.SetMonitoringServiceRequest
+ * @memberof google.container.v1.ListClustersResponse
* @static
- * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set
- * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest instance
+ * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set
+ * @returns {google.container.v1.ListClustersResponse} ListClustersResponse instance
*/
- SetMonitoringServiceRequest.create = function create(properties) {
- return new SetMonitoringServiceRequest(properties);
+ ListClustersResponse.create = function create(properties) {
+ return new ListClustersResponse(properties);
};
/**
- * Encodes the specified SetMonitoringServiceRequest message. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages.
+ * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.SetMonitoringServiceRequest
+ * @memberof google.container.v1.ListClustersResponse
* @static
- * @param {google.container.v1.ISetMonitoringServiceRequest} message SetMonitoringServiceRequest message or plain object to encode
+ * @param {google.container.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- SetMonitoringServiceRequest.encode = function encode(message, writer) {
+ ListClustersResponse.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
- if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
- if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
- if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.monitoringService);
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.name);
+ if (message.clusters != null && message.clusters.length)
+ for (var i = 0; i < message.clusters.length; ++i)
+ $root.google.container.v1.Cluster.encode(message.clusters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.missingZones != null && message.missingZones.length)
+ for (var i = 0; i < message.missingZones.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.missingZones[i]);
return writer;
};
/**
- * Encodes the specified SetMonitoringServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages.
+ * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.SetMonitoringServiceRequest
+ * @memberof google.container.v1.ListClustersResponse
* @static
- * @param {google.container.v1.ISetMonitoringServiceRequest} message SetMonitoringServiceRequest message or plain object to encode
+ * @param {google.container.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- SetMonitoringServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ ListClustersResponse.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer.
+ * Decodes a ListClustersResponse message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.SetMonitoringServiceRequest
+ * @memberof google.container.v1.ListClustersResponse
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest
+ * @returns {google.container.v1.ListClustersResponse} ListClustersResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- SetMonitoringServiceRequest.decode = function decode(reader, length) {
+ ListClustersResponse.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.SetMonitoringServiceRequest();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListClustersResponse();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.projectId = reader.string();
+ if (!(message.clusters && message.clusters.length))
+ message.clusters = [];
+ message.clusters.push($root.google.container.v1.Cluster.decode(reader, reader.uint32()));
break;
case 2:
- message.zone = reader.string();
- break;
- case 3:
- message.clusterId = reader.string();
- break;
- case 4:
- message.monitoringService = reader.string();
- break;
- case 6:
- message.name = reader.string();
+ if (!(message.missingZones && message.missingZones.length))
+ message.missingZones = [];
+ message.missingZones.push(reader.string());
break;
default:
reader.skipType(tag & 7);
@@ -10530,144 +14813,148 @@
};
/**
- * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer, length delimited.
+ * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.SetMonitoringServiceRequest
+ * @memberof google.container.v1.ListClustersResponse
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest
+ * @returns {google.container.v1.ListClustersResponse} ListClustersResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- SetMonitoringServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ ListClustersResponse.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a SetMonitoringServiceRequest message.
+ * Verifies a ListClustersResponse message.
* @function verify
- * @memberof google.container.v1.SetMonitoringServiceRequest
+ * @memberof google.container.v1.ListClustersResponse
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- SetMonitoringServiceRequest.verify = function verify(message) {
+ ListClustersResponse.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.projectId != null && message.hasOwnProperty("projectId"))
- if (!$util.isString(message.projectId))
- return "projectId: string expected";
- if (message.zone != null && message.hasOwnProperty("zone"))
- if (!$util.isString(message.zone))
- return "zone: string expected";
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- if (!$util.isString(message.clusterId))
- return "clusterId: string expected";
- if (message.monitoringService != null && message.hasOwnProperty("monitoringService"))
- if (!$util.isString(message.monitoringService))
- return "monitoringService: string expected";
- if (message.name != null && message.hasOwnProperty("name"))
- if (!$util.isString(message.name))
- return "name: string expected";
+ if (message.clusters != null && message.hasOwnProperty("clusters")) {
+ if (!Array.isArray(message.clusters))
+ return "clusters: array expected";
+ for (var i = 0; i < message.clusters.length; ++i) {
+ var error = $root.google.container.v1.Cluster.verify(message.clusters[i]);
+ if (error)
+ return "clusters." + error;
+ }
+ }
+ if (message.missingZones != null && message.hasOwnProperty("missingZones")) {
+ if (!Array.isArray(message.missingZones))
+ return "missingZones: array expected";
+ for (var i = 0; i < message.missingZones.length; ++i)
+ if (!$util.isString(message.missingZones[i]))
+ return "missingZones: string[] expected";
+ }
return null;
};
/**
- * Creates a SetMonitoringServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.SetMonitoringServiceRequest
+ * @memberof google.container.v1.ListClustersResponse
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest
+ * @returns {google.container.v1.ListClustersResponse} ListClustersResponse
*/
- SetMonitoringServiceRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.SetMonitoringServiceRequest)
+ ListClustersResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.ListClustersResponse)
return object;
- var message = new $root.google.container.v1.SetMonitoringServiceRequest();
- if (object.projectId != null)
- message.projectId = String(object.projectId);
- if (object.zone != null)
- message.zone = String(object.zone);
- if (object.clusterId != null)
- message.clusterId = String(object.clusterId);
- if (object.monitoringService != null)
- message.monitoringService = String(object.monitoringService);
- if (object.name != null)
- message.name = String(object.name);
+ var message = new $root.google.container.v1.ListClustersResponse();
+ if (object.clusters) {
+ if (!Array.isArray(object.clusters))
+ throw TypeError(".google.container.v1.ListClustersResponse.clusters: array expected");
+ message.clusters = [];
+ for (var i = 0; i < object.clusters.length; ++i) {
+ if (typeof object.clusters[i] !== "object")
+ throw TypeError(".google.container.v1.ListClustersResponse.clusters: object expected");
+ message.clusters[i] = $root.google.container.v1.Cluster.fromObject(object.clusters[i]);
+ }
+ }
+ if (object.missingZones) {
+ if (!Array.isArray(object.missingZones))
+ throw TypeError(".google.container.v1.ListClustersResponse.missingZones: array expected");
+ message.missingZones = [];
+ for (var i = 0; i < object.missingZones.length; ++i)
+ message.missingZones[i] = String(object.missingZones[i]);
+ }
return message;
};
/**
- * Creates a plain object from a SetMonitoringServiceRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.SetMonitoringServiceRequest
+ * @memberof google.container.v1.ListClustersResponse
* @static
- * @param {google.container.v1.SetMonitoringServiceRequest} message SetMonitoringServiceRequest
+ * @param {google.container.v1.ListClustersResponse} message ListClustersResponse
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- SetMonitoringServiceRequest.toObject = function toObject(message, options) {
+ ListClustersResponse.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.defaults) {
- object.projectId = "";
- object.zone = "";
- object.clusterId = "";
- object.monitoringService = "";
- object.name = "";
+ if (options.arrays || options.defaults) {
+ object.clusters = [];
+ object.missingZones = [];
+ }
+ if (message.clusters && message.clusters.length) {
+ object.clusters = [];
+ for (var j = 0; j < message.clusters.length; ++j)
+ object.clusters[j] = $root.google.container.v1.Cluster.toObject(message.clusters[j], options);
+ }
+ if (message.missingZones && message.missingZones.length) {
+ object.missingZones = [];
+ for (var j = 0; j < message.missingZones.length; ++j)
+ object.missingZones[j] = message.missingZones[j];
}
- if (message.projectId != null && message.hasOwnProperty("projectId"))
- object.projectId = message.projectId;
- if (message.zone != null && message.hasOwnProperty("zone"))
- object.zone = message.zone;
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- object.clusterId = message.clusterId;
- if (message.monitoringService != null && message.hasOwnProperty("monitoringService"))
- object.monitoringService = message.monitoringService;
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
return object;
};
/**
- * Converts this SetMonitoringServiceRequest to JSON.
+ * Converts this ListClustersResponse to JSON.
* @function toJSON
- * @memberof google.container.v1.SetMonitoringServiceRequest
+ * @memberof google.container.v1.ListClustersResponse
* @instance
* @returns {Object.} JSON object
*/
- SetMonitoringServiceRequest.prototype.toJSON = function toJSON() {
+ ListClustersResponse.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return SetMonitoringServiceRequest;
+ return ListClustersResponse;
})();
- v1.SetAddonsConfigRequest = (function() {
+ v1.GetOperationRequest = (function() {
/**
- * Properties of a SetAddonsConfigRequest.
+ * Properties of a GetOperationRequest.
* @memberof google.container.v1
- * @interface ISetAddonsConfigRequest
- * @property {string|null} [projectId] SetAddonsConfigRequest projectId
- * @property {string|null} [zone] SetAddonsConfigRequest zone
- * @property {string|null} [clusterId] SetAddonsConfigRequest clusterId
- * @property {google.container.v1.IAddonsConfig|null} [addonsConfig] SetAddonsConfigRequest addonsConfig
- * @property {string|null} [name] SetAddonsConfigRequest name
+ * @interface IGetOperationRequest
+ * @property {string|null} [projectId] GetOperationRequest projectId
+ * @property {string|null} [zone] GetOperationRequest zone
+ * @property {string|null} [operationId] GetOperationRequest operationId
+ * @property {string|null} [name] GetOperationRequest name
*/
/**
- * Constructs a new SetAddonsConfigRequest.
+ * Constructs a new GetOperationRequest.
* @memberof google.container.v1
- * @classdesc Represents a SetAddonsConfigRequest.
- * @implements ISetAddonsConfigRequest
+ * @classdesc Represents a GetOperationRequest.
+ * @implements IGetOperationRequest
* @constructor
- * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set
+ * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set
*/
- function SetAddonsConfigRequest(properties) {
+ function GetOperationRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -10675,110 +14962,100 @@
}
/**
- * SetAddonsConfigRequest projectId.
+ * GetOperationRequest projectId.
* @member {string} projectId
- * @memberof google.container.v1.SetAddonsConfigRequest
+ * @memberof google.container.v1.GetOperationRequest
* @instance
*/
- SetAddonsConfigRequest.prototype.projectId = "";
+ GetOperationRequest.prototype.projectId = "";
/**
- * SetAddonsConfigRequest zone.
+ * GetOperationRequest zone.
* @member {string} zone
- * @memberof google.container.v1.SetAddonsConfigRequest
- * @instance
- */
- SetAddonsConfigRequest.prototype.zone = "";
-
- /**
- * SetAddonsConfigRequest clusterId.
- * @member {string} clusterId
- * @memberof google.container.v1.SetAddonsConfigRequest
+ * @memberof google.container.v1.GetOperationRequest
* @instance
*/
- SetAddonsConfigRequest.prototype.clusterId = "";
+ GetOperationRequest.prototype.zone = "";
/**
- * SetAddonsConfigRequest addonsConfig.
- * @member {google.container.v1.IAddonsConfig|null|undefined} addonsConfig
- * @memberof google.container.v1.SetAddonsConfigRequest
+ * GetOperationRequest operationId.
+ * @member {string} operationId
+ * @memberof google.container.v1.GetOperationRequest
* @instance
*/
- SetAddonsConfigRequest.prototype.addonsConfig = null;
+ GetOperationRequest.prototype.operationId = "";
/**
- * SetAddonsConfigRequest name.
+ * GetOperationRequest name.
* @member {string} name
- * @memberof google.container.v1.SetAddonsConfigRequest
+ * @memberof google.container.v1.GetOperationRequest
* @instance
*/
- SetAddonsConfigRequest.prototype.name = "";
+ GetOperationRequest.prototype.name = "";
/**
- * Creates a new SetAddonsConfigRequest instance using the specified properties.
+ * Creates a new GetOperationRequest instance using the specified properties.
* @function create
- * @memberof google.container.v1.SetAddonsConfigRequest
+ * @memberof google.container.v1.GetOperationRequest
* @static
- * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set
- * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest instance
+ * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set
+ * @returns {google.container.v1.GetOperationRequest} GetOperationRequest instance
*/
- SetAddonsConfigRequest.create = function create(properties) {
- return new SetAddonsConfigRequest(properties);
+ GetOperationRequest.create = function create(properties) {
+ return new GetOperationRequest(properties);
};
/**
- * Encodes the specified SetAddonsConfigRequest message. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages.
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.SetAddonsConfigRequest
+ * @memberof google.container.v1.GetOperationRequest
* @static
- * @param {google.container.v1.ISetAddonsConfigRequest} message SetAddonsConfigRequest message or plain object to encode
+ * @param {google.container.v1.IGetOperationRequest} message GetOperationRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- SetAddonsConfigRequest.encode = function encode(message, writer) {
+ GetOperationRequest.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
- if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
- if (message.addonsConfig != null && Object.hasOwnProperty.call(message, "addonsConfig"))
- $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.operationId != null && Object.hasOwnProperty.call(message, "operationId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId);
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.name);
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.name);
return writer;
};
/**
- * Encodes the specified SetAddonsConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages.
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.SetAddonsConfigRequest
+ * @memberof google.container.v1.GetOperationRequest
* @static
- * @param {google.container.v1.ISetAddonsConfigRequest} message SetAddonsConfigRequest message or plain object to encode
+ * @param {google.container.v1.IGetOperationRequest} message GetOperationRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- SetAddonsConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ GetOperationRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a SetAddonsConfigRequest message from the specified reader or buffer.
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.SetAddonsConfigRequest
+ * @memberof google.container.v1.GetOperationRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest
+ * @returns {google.container.v1.GetOperationRequest} GetOperationRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- SetAddonsConfigRequest.decode = function decode(reader, length) {
+ GetOperationRequest.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.SetAddonsConfigRequest();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetOperationRequest();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
@@ -10789,12 +15066,9 @@
message.zone = reader.string();
break;
case 3:
- message.clusterId = reader.string();
- break;
- case 4:
- message.addonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32());
+ message.operationId = reader.string();
break;
- case 6:
+ case 5:
message.name = reader.string();
break;
default:
@@ -10806,30 +15080,30 @@
};
/**
- * Decodes a SetAddonsConfigRequest message from the specified reader or buffer, length delimited.
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.SetAddonsConfigRequest
+ * @memberof google.container.v1.GetOperationRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest
+ * @returns {google.container.v1.GetOperationRequest} GetOperationRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- SetAddonsConfigRequest.decodeDelimited = function decodeDelimited(reader) {
+ GetOperationRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a SetAddonsConfigRequest message.
+ * Verifies a GetOperationRequest message.
* @function verify
- * @memberof google.container.v1.SetAddonsConfigRequest
+ * @memberof google.container.v1.GetOperationRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- SetAddonsConfigRequest.verify = function verify(message) {
+ GetOperationRequest.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.projectId != null && message.hasOwnProperty("projectId"))
@@ -10838,14 +15112,9 @@
if (message.zone != null && message.hasOwnProperty("zone"))
if (!$util.isString(message.zone))
return "zone: string expected";
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- if (!$util.isString(message.clusterId))
- return "clusterId: string expected";
- if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) {
- var error = $root.google.container.v1.AddonsConfig.verify(message.addonsConfig);
- if (error)
- return "addonsConfig." + error;
- }
+ if (message.operationId != null && message.hasOwnProperty("operationId"))
+ if (!$util.isString(message.operationId))
+ return "operationId: string expected";
if (message.name != null && message.hasOwnProperty("name"))
if (!$util.isString(message.name))
return "name: string expected";
@@ -10853,103 +15122,92 @@
};
/**
- * Creates a SetAddonsConfigRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.SetAddonsConfigRequest
+ * @memberof google.container.v1.GetOperationRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest
+ * @returns {google.container.v1.GetOperationRequest} GetOperationRequest
*/
- SetAddonsConfigRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.SetAddonsConfigRequest)
+ GetOperationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.GetOperationRequest)
return object;
- var message = new $root.google.container.v1.SetAddonsConfigRequest();
+ var message = new $root.google.container.v1.GetOperationRequest();
if (object.projectId != null)
message.projectId = String(object.projectId);
if (object.zone != null)
message.zone = String(object.zone);
- if (object.clusterId != null)
- message.clusterId = String(object.clusterId);
- if (object.addonsConfig != null) {
- if (typeof object.addonsConfig !== "object")
- throw TypeError(".google.container.v1.SetAddonsConfigRequest.addonsConfig: object expected");
- message.addonsConfig = $root.google.container.v1.AddonsConfig.fromObject(object.addonsConfig);
- }
+ if (object.operationId != null)
+ message.operationId = String(object.operationId);
if (object.name != null)
message.name = String(object.name);
return message;
};
/**
- * Creates a plain object from a SetAddonsConfigRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.SetAddonsConfigRequest
+ * @memberof google.container.v1.GetOperationRequest
* @static
- * @param {google.container.v1.SetAddonsConfigRequest} message SetAddonsConfigRequest
+ * @param {google.container.v1.GetOperationRequest} message GetOperationRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- SetAddonsConfigRequest.toObject = function toObject(message, options) {
+ GetOperationRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
object.projectId = "";
object.zone = "";
- object.clusterId = "";
- object.addonsConfig = null;
+ object.operationId = "";
object.name = "";
}
if (message.projectId != null && message.hasOwnProperty("projectId"))
object.projectId = message.projectId;
if (message.zone != null && message.hasOwnProperty("zone"))
object.zone = message.zone;
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- object.clusterId = message.clusterId;
- if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig"))
- object.addonsConfig = $root.google.container.v1.AddonsConfig.toObject(message.addonsConfig, options);
+ if (message.operationId != null && message.hasOwnProperty("operationId"))
+ object.operationId = message.operationId;
if (message.name != null && message.hasOwnProperty("name"))
object.name = message.name;
return object;
};
/**
- * Converts this SetAddonsConfigRequest to JSON.
+ * Converts this GetOperationRequest to JSON.
* @function toJSON
- * @memberof google.container.v1.SetAddonsConfigRequest
+ * @memberof google.container.v1.GetOperationRequest
* @instance
* @returns {Object.} JSON object
*/
- SetAddonsConfigRequest.prototype.toJSON = function toJSON() {
+ GetOperationRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return SetAddonsConfigRequest;
+ return GetOperationRequest;
})();
- v1.SetLocationsRequest = (function() {
+ v1.ListOperationsRequest = (function() {
/**
- * Properties of a SetLocationsRequest.
+ * Properties of a ListOperationsRequest.
* @memberof google.container.v1
- * @interface ISetLocationsRequest
- * @property {string|null} [projectId] SetLocationsRequest projectId
- * @property {string|null} [zone] SetLocationsRequest zone
- * @property {string|null} [clusterId] SetLocationsRequest clusterId
- * @property {Array.|null} [locations] SetLocationsRequest locations
- * @property {string|null} [name] SetLocationsRequest name
+ * @interface IListOperationsRequest
+ * @property {string|null} [projectId] ListOperationsRequest projectId
+ * @property {string|null} [zone] ListOperationsRequest zone
+ * @property {string|null} [parent] ListOperationsRequest parent
*/
/**
- * Constructs a new SetLocationsRequest.
+ * Constructs a new ListOperationsRequest.
* @memberof google.container.v1
- * @classdesc Represents a SetLocationsRequest.
- * @implements ISetLocationsRequest
+ * @classdesc Represents a ListOperationsRequest.
+ * @implements IListOperationsRequest
* @constructor
- * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set
+ * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set
*/
- function SetLocationsRequest(properties) {
- this.locations = [];
+ function ListOperationsRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -10957,111 +15215,90 @@
}
/**
- * SetLocationsRequest projectId.
+ * ListOperationsRequest projectId.
* @member {string} projectId
- * @memberof google.container.v1.SetLocationsRequest
+ * @memberof google.container.v1.ListOperationsRequest
* @instance
*/
- SetLocationsRequest.prototype.projectId = "";
+ ListOperationsRequest.prototype.projectId = "";
/**
- * SetLocationsRequest zone.
+ * ListOperationsRequest zone.
* @member {string} zone
- * @memberof google.container.v1.SetLocationsRequest
- * @instance
- */
- SetLocationsRequest.prototype.zone = "";
-
- /**
- * SetLocationsRequest clusterId.
- * @member {string} clusterId
- * @memberof google.container.v1.SetLocationsRequest
- * @instance
- */
- SetLocationsRequest.prototype.clusterId = "";
-
- /**
- * SetLocationsRequest locations.
- * @member {Array.} locations
- * @memberof google.container.v1.SetLocationsRequest
+ * @memberof google.container.v1.ListOperationsRequest
* @instance
*/
- SetLocationsRequest.prototype.locations = $util.emptyArray;
+ ListOperationsRequest.prototype.zone = "";
/**
- * SetLocationsRequest name.
- * @member {string} name
- * @memberof google.container.v1.SetLocationsRequest
+ * ListOperationsRequest parent.
+ * @member {string} parent
+ * @memberof google.container.v1.ListOperationsRequest
* @instance
*/
- SetLocationsRequest.prototype.name = "";
+ ListOperationsRequest.prototype.parent = "";
/**
- * Creates a new SetLocationsRequest instance using the specified properties.
+ * Creates a new ListOperationsRequest instance using the specified properties.
* @function create
- * @memberof google.container.v1.SetLocationsRequest
+ * @memberof google.container.v1.ListOperationsRequest
* @static
- * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set
- * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest instance
+ * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set
+ * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest instance
*/
- SetLocationsRequest.create = function create(properties) {
- return new SetLocationsRequest(properties);
+ ListOperationsRequest.create = function create(properties) {
+ return new ListOperationsRequest(properties);
};
/**
- * Encodes the specified SetLocationsRequest message. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages.
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.SetLocationsRequest
+ * @memberof google.container.v1.ListOperationsRequest
* @static
- * @param {google.container.v1.ISetLocationsRequest} message SetLocationsRequest message or plain object to encode
+ * @param {google.container.v1.IListOperationsRequest} message ListOperationsRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- SetLocationsRequest.encode = function encode(message, writer) {
+ ListOperationsRequest.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
- if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
- if (message.locations != null && message.locations.length)
- for (var i = 0; i < message.locations.length; ++i)
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.locations[i]);
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.name);
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent);
return writer;
};
/**
- * Encodes the specified SetLocationsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages.
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.SetLocationsRequest
+ * @memberof google.container.v1.ListOperationsRequest
* @static
- * @param {google.container.v1.ISetLocationsRequest} message SetLocationsRequest message or plain object to encode
+ * @param {google.container.v1.IListOperationsRequest} message ListOperationsRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- SetLocationsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ ListOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a SetLocationsRequest message from the specified reader or buffer.
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.SetLocationsRequest
+ * @memberof google.container.v1.ListOperationsRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest
+ * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- SetLocationsRequest.decode = function decode(reader, length) {
+ ListOperationsRequest.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.SetLocationsRequest();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListOperationsRequest();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
@@ -11071,16 +15308,8 @@
case 2:
message.zone = reader.string();
break;
- case 3:
- message.clusterId = reader.string();
- break;
case 4:
- if (!(message.locations && message.locations.length))
- message.locations = [];
- message.locations.push(reader.string());
- break;
- case 6:
- message.name = reader.string();
+ message.parent = reader.string();
break;
default:
reader.skipType(tag & 7);
@@ -11091,30 +15320,30 @@
};
/**
- * Decodes a SetLocationsRequest message from the specified reader or buffer, length delimited.
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.SetLocationsRequest
+ * @memberof google.container.v1.ListOperationsRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest
+ * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- SetLocationsRequest.decodeDelimited = function decodeDelimited(reader) {
+ ListOperationsRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a SetLocationsRequest message.
+ * Verifies a ListOperationsRequest message.
* @function verify
- * @memberof google.container.v1.SetLocationsRequest
+ * @memberof google.container.v1.ListOperationsRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- SetLocationsRequest.verify = function verify(message) {
+ ListOperationsRequest.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.projectId != null && message.hasOwnProperty("projectId"))
@@ -11123,125 +15352,95 @@
if (message.zone != null && message.hasOwnProperty("zone"))
if (!$util.isString(message.zone))
return "zone: string expected";
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- if (!$util.isString(message.clusterId))
- return "clusterId: string expected";
- if (message.locations != null && message.hasOwnProperty("locations")) {
- if (!Array.isArray(message.locations))
- return "locations: array expected";
- for (var i = 0; i < message.locations.length; ++i)
- if (!$util.isString(message.locations[i]))
- return "locations: string[] expected";
- }
- if (message.name != null && message.hasOwnProperty("name"))
- if (!$util.isString(message.name))
- return "name: string expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
return null;
};
/**
- * Creates a SetLocationsRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.SetLocationsRequest
+ * @memberof google.container.v1.ListOperationsRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest
+ * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest
*/
- SetLocationsRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.SetLocationsRequest)
+ ListOperationsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.ListOperationsRequest)
return object;
- var message = new $root.google.container.v1.SetLocationsRequest();
+ var message = new $root.google.container.v1.ListOperationsRequest();
if (object.projectId != null)
message.projectId = String(object.projectId);
if (object.zone != null)
message.zone = String(object.zone);
- if (object.clusterId != null)
- message.clusterId = String(object.clusterId);
- if (object.locations) {
- if (!Array.isArray(object.locations))
- throw TypeError(".google.container.v1.SetLocationsRequest.locations: array expected");
- message.locations = [];
- for (var i = 0; i < object.locations.length; ++i)
- message.locations[i] = String(object.locations[i]);
- }
- if (object.name != null)
- message.name = String(object.name);
+ if (object.parent != null)
+ message.parent = String(object.parent);
return message;
};
/**
- * Creates a plain object from a SetLocationsRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.SetLocationsRequest
+ * @memberof google.container.v1.ListOperationsRequest
* @static
- * @param {google.container.v1.SetLocationsRequest} message SetLocationsRequest
+ * @param {google.container.v1.ListOperationsRequest} message ListOperationsRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- SetLocationsRequest.toObject = function toObject(message, options) {
+ ListOperationsRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.arrays || options.defaults)
- object.locations = [];
if (options.defaults) {
object.projectId = "";
object.zone = "";
- object.clusterId = "";
- object.name = "";
+ object.parent = "";
}
if (message.projectId != null && message.hasOwnProperty("projectId"))
object.projectId = message.projectId;
if (message.zone != null && message.hasOwnProperty("zone"))
object.zone = message.zone;
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- object.clusterId = message.clusterId;
- if (message.locations && message.locations.length) {
- object.locations = [];
- for (var j = 0; j < message.locations.length; ++j)
- object.locations[j] = message.locations[j];
- }
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
return object;
};
/**
- * Converts this SetLocationsRequest to JSON.
+ * Converts this ListOperationsRequest to JSON.
* @function toJSON
- * @memberof google.container.v1.SetLocationsRequest
+ * @memberof google.container.v1.ListOperationsRequest
* @instance
* @returns {Object.} JSON object
*/
- SetLocationsRequest.prototype.toJSON = function toJSON() {
+ ListOperationsRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return SetLocationsRequest;
+ return ListOperationsRequest;
})();
- v1.UpdateMasterRequest = (function() {
+ v1.CancelOperationRequest = (function() {
/**
- * Properties of an UpdateMasterRequest.
+ * Properties of a CancelOperationRequest.
* @memberof google.container.v1
- * @interface IUpdateMasterRequest
- * @property {string|null} [projectId] UpdateMasterRequest projectId
- * @property {string|null} [zone] UpdateMasterRequest zone
- * @property {string|null} [clusterId] UpdateMasterRequest clusterId
- * @property {string|null} [masterVersion] UpdateMasterRequest masterVersion
- * @property {string|null} [name] UpdateMasterRequest name
+ * @interface ICancelOperationRequest
+ * @property {string|null} [projectId] CancelOperationRequest projectId
+ * @property {string|null} [zone] CancelOperationRequest zone
+ * @property {string|null} [operationId] CancelOperationRequest operationId
+ * @property {string|null} [name] CancelOperationRequest name
*/
/**
- * Constructs a new UpdateMasterRequest.
+ * Constructs a new CancelOperationRequest.
* @memberof google.container.v1
- * @classdesc Represents an UpdateMasterRequest.
- * @implements IUpdateMasterRequest
+ * @classdesc Represents a CancelOperationRequest.
+ * @implements ICancelOperationRequest
* @constructor
- * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set
+ * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set
*/
- function UpdateMasterRequest(properties) {
+ function CancelOperationRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -11249,110 +15448,100 @@
}
/**
- * UpdateMasterRequest projectId.
+ * CancelOperationRequest projectId.
* @member {string} projectId
- * @memberof google.container.v1.UpdateMasterRequest
+ * @memberof google.container.v1.CancelOperationRequest
* @instance
*/
- UpdateMasterRequest.prototype.projectId = "";
+ CancelOperationRequest.prototype.projectId = "";
/**
- * UpdateMasterRequest zone.
+ * CancelOperationRequest zone.
* @member {string} zone
- * @memberof google.container.v1.UpdateMasterRequest
- * @instance
- */
- UpdateMasterRequest.prototype.zone = "";
-
- /**
- * UpdateMasterRequest clusterId.
- * @member {string} clusterId
- * @memberof google.container.v1.UpdateMasterRequest
+ * @memberof google.container.v1.CancelOperationRequest
* @instance
*/
- UpdateMasterRequest.prototype.clusterId = "";
+ CancelOperationRequest.prototype.zone = "";
/**
- * UpdateMasterRequest masterVersion.
- * @member {string} masterVersion
- * @memberof google.container.v1.UpdateMasterRequest
+ * CancelOperationRequest operationId.
+ * @member {string} operationId
+ * @memberof google.container.v1.CancelOperationRequest
* @instance
*/
- UpdateMasterRequest.prototype.masterVersion = "";
+ CancelOperationRequest.prototype.operationId = "";
/**
- * UpdateMasterRequest name.
+ * CancelOperationRequest name.
* @member {string} name
- * @memberof google.container.v1.UpdateMasterRequest
+ * @memberof google.container.v1.CancelOperationRequest
* @instance
*/
- UpdateMasterRequest.prototype.name = "";
+ CancelOperationRequest.prototype.name = "";
/**
- * Creates a new UpdateMasterRequest instance using the specified properties.
+ * Creates a new CancelOperationRequest instance using the specified properties.
* @function create
- * @memberof google.container.v1.UpdateMasterRequest
+ * @memberof google.container.v1.CancelOperationRequest
* @static
- * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set
- * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest instance
+ * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set
+ * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest instance
*/
- UpdateMasterRequest.create = function create(properties) {
- return new UpdateMasterRequest(properties);
+ CancelOperationRequest.create = function create(properties) {
+ return new CancelOperationRequest(properties);
};
/**
- * Encodes the specified UpdateMasterRequest message. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages.
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.UpdateMasterRequest
+ * @memberof google.container.v1.CancelOperationRequest
* @static
- * @param {google.container.v1.IUpdateMasterRequest} message UpdateMasterRequest message or plain object to encode
+ * @param {google.container.v1.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- UpdateMasterRequest.encode = function encode(message, writer) {
+ CancelOperationRequest.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
- if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
- if (message.masterVersion != null && Object.hasOwnProperty.call(message, "masterVersion"))
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.masterVersion);
+ if (message.operationId != null && Object.hasOwnProperty.call(message, "operationId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId);
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.name);
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.name);
return writer;
};
/**
- * Encodes the specified UpdateMasterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages.
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.UpdateMasterRequest
+ * @memberof google.container.v1.CancelOperationRequest
* @static
- * @param {google.container.v1.IUpdateMasterRequest} message UpdateMasterRequest message or plain object to encode
+ * @param {google.container.v1.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- UpdateMasterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ CancelOperationRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes an UpdateMasterRequest message from the specified reader or buffer.
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.UpdateMasterRequest
+ * @memberof google.container.v1.CancelOperationRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest
+ * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- UpdateMasterRequest.decode = function decode(reader, length) {
+ CancelOperationRequest.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.UpdateMasterRequest();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CancelOperationRequest();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
@@ -11363,12 +15552,9 @@
message.zone = reader.string();
break;
case 3:
- message.clusterId = reader.string();
+ message.operationId = reader.string();
break;
case 4:
- message.masterVersion = reader.string();
- break;
- case 7:
message.name = reader.string();
break;
default:
@@ -11380,30 +15566,30 @@
};
/**
- * Decodes an UpdateMasterRequest message from the specified reader or buffer, length delimited.
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.UpdateMasterRequest
+ * @memberof google.container.v1.CancelOperationRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest
+ * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- UpdateMasterRequest.decodeDelimited = function decodeDelimited(reader) {
+ CancelOperationRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies an UpdateMasterRequest message.
+ * Verifies a CancelOperationRequest message.
* @function verify
- * @memberof google.container.v1.UpdateMasterRequest
+ * @memberof google.container.v1.CancelOperationRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- UpdateMasterRequest.verify = function verify(message) {
+ CancelOperationRequest.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.projectId != null && message.hasOwnProperty("projectId"))
@@ -11412,12 +15598,9 @@
if (message.zone != null && message.hasOwnProperty("zone"))
if (!$util.isString(message.zone))
return "zone: string expected";
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- if (!$util.isString(message.clusterId))
- return "clusterId: string expected";
- if (message.masterVersion != null && message.hasOwnProperty("masterVersion"))
- if (!$util.isString(message.masterVersion))
- return "masterVersion: string expected";
+ if (message.operationId != null && message.hasOwnProperty("operationId"))
+ if (!$util.isString(message.operationId))
+ return "operationId: string expected";
if (message.name != null && message.hasOwnProperty("name"))
if (!$util.isString(message.name))
return "name: string expected";
@@ -11425,100 +15608,93 @@
};
/**
- * Creates an UpdateMasterRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.UpdateMasterRequest
+ * @memberof google.container.v1.CancelOperationRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest
+ * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest
*/
- UpdateMasterRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.UpdateMasterRequest)
+ CancelOperationRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.CancelOperationRequest)
return object;
- var message = new $root.google.container.v1.UpdateMasterRequest();
+ var message = new $root.google.container.v1.CancelOperationRequest();
if (object.projectId != null)
message.projectId = String(object.projectId);
if (object.zone != null)
message.zone = String(object.zone);
- if (object.clusterId != null)
- message.clusterId = String(object.clusterId);
- if (object.masterVersion != null)
- message.masterVersion = String(object.masterVersion);
+ if (object.operationId != null)
+ message.operationId = String(object.operationId);
if (object.name != null)
message.name = String(object.name);
return message;
};
/**
- * Creates a plain object from an UpdateMasterRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.UpdateMasterRequest
+ * @memberof google.container.v1.CancelOperationRequest
* @static
- * @param {google.container.v1.UpdateMasterRequest} message UpdateMasterRequest
+ * @param {google.container.v1.CancelOperationRequest} message CancelOperationRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- UpdateMasterRequest.toObject = function toObject(message, options) {
+ CancelOperationRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
object.projectId = "";
object.zone = "";
- object.clusterId = "";
- object.masterVersion = "";
+ object.operationId = "";
object.name = "";
}
if (message.projectId != null && message.hasOwnProperty("projectId"))
object.projectId = message.projectId;
if (message.zone != null && message.hasOwnProperty("zone"))
object.zone = message.zone;
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- object.clusterId = message.clusterId;
- if (message.masterVersion != null && message.hasOwnProperty("masterVersion"))
- object.masterVersion = message.masterVersion;
+ if (message.operationId != null && message.hasOwnProperty("operationId"))
+ object.operationId = message.operationId;
if (message.name != null && message.hasOwnProperty("name"))
object.name = message.name;
return object;
};
/**
- * Converts this UpdateMasterRequest to JSON.
+ * Converts this CancelOperationRequest to JSON.
* @function toJSON
- * @memberof google.container.v1.UpdateMasterRequest
+ * @memberof google.container.v1.CancelOperationRequest
* @instance
* @returns {Object.} JSON object
*/
- UpdateMasterRequest.prototype.toJSON = function toJSON() {
+ CancelOperationRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return UpdateMasterRequest;
+ return CancelOperationRequest;
})();
- v1.SetMasterAuthRequest = (function() {
+ v1.ListOperationsResponse = (function() {
/**
- * Properties of a SetMasterAuthRequest.
+ * Properties of a ListOperationsResponse.
* @memberof google.container.v1
- * @interface ISetMasterAuthRequest
- * @property {string|null} [projectId] SetMasterAuthRequest projectId
- * @property {string|null} [zone] SetMasterAuthRequest zone
- * @property {string|null} [clusterId] SetMasterAuthRequest clusterId
- * @property {google.container.v1.SetMasterAuthRequest.Action|null} [action] SetMasterAuthRequest action
- * @property {google.container.v1.IMasterAuth|null} [update] SetMasterAuthRequest update
- * @property {string|null} [name] SetMasterAuthRequest name
+ * @interface IListOperationsResponse
+ * @property {Array.|null} [operations] ListOperationsResponse operations
+ * @property {Array.|null} [missingZones] ListOperationsResponse missingZones
*/
/**
- * Constructs a new SetMasterAuthRequest.
+ * Constructs a new ListOperationsResponse.
* @memberof google.container.v1
- * @classdesc Represents a SetMasterAuthRequest.
- * @implements ISetMasterAuthRequest
+ * @classdesc Represents a ListOperationsResponse.
+ * @implements IListOperationsResponse
* @constructor
- * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set
+ * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set
*/
- function SetMasterAuthRequest(properties) {
+ function ListOperationsResponse(properties) {
+ this.operations = [];
+ this.missingZones = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -11526,140 +15702,94 @@
}
/**
- * SetMasterAuthRequest projectId.
- * @member {string} projectId
- * @memberof google.container.v1.SetMasterAuthRequest
- * @instance
- */
- SetMasterAuthRequest.prototype.projectId = "";
-
- /**
- * SetMasterAuthRequest zone.
- * @member {string} zone
- * @memberof google.container.v1.SetMasterAuthRequest
- * @instance
- */
- SetMasterAuthRequest.prototype.zone = "";
-
- /**
- * SetMasterAuthRequest clusterId.
- * @member {string} clusterId
- * @memberof google.container.v1.SetMasterAuthRequest
- * @instance
- */
- SetMasterAuthRequest.prototype.clusterId = "";
-
- /**
- * SetMasterAuthRequest action.
- * @member {google.container.v1.SetMasterAuthRequest.Action} action
- * @memberof google.container.v1.SetMasterAuthRequest
- * @instance
- */
- SetMasterAuthRequest.prototype.action = 0;
-
- /**
- * SetMasterAuthRequest update.
- * @member {google.container.v1.IMasterAuth|null|undefined} update
- * @memberof google.container.v1.SetMasterAuthRequest
+ * ListOperationsResponse operations.
+ * @member {Array.} operations
+ * @memberof google.container.v1.ListOperationsResponse
* @instance
*/
- SetMasterAuthRequest.prototype.update = null;
+ ListOperationsResponse.prototype.operations = $util.emptyArray;
/**
- * SetMasterAuthRequest name.
- * @member {string} name
- * @memberof google.container.v1.SetMasterAuthRequest
+ * ListOperationsResponse missingZones.
+ * @member {Array.} missingZones
+ * @memberof google.container.v1.ListOperationsResponse
* @instance
*/
- SetMasterAuthRequest.prototype.name = "";
+ ListOperationsResponse.prototype.missingZones = $util.emptyArray;
/**
- * Creates a new SetMasterAuthRequest instance using the specified properties.
+ * Creates a new ListOperationsResponse instance using the specified properties.
* @function create
- * @memberof google.container.v1.SetMasterAuthRequest
+ * @memberof google.container.v1.ListOperationsResponse
* @static
- * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set
- * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest instance
+ * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set
+ * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse instance
*/
- SetMasterAuthRequest.create = function create(properties) {
- return new SetMasterAuthRequest(properties);
+ ListOperationsResponse.create = function create(properties) {
+ return new ListOperationsResponse(properties);
};
/**
- * Encodes the specified SetMasterAuthRequest message. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages.
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.SetMasterAuthRequest
+ * @memberof google.container.v1.ListOperationsResponse
* @static
- * @param {google.container.v1.ISetMasterAuthRequest} message SetMasterAuthRequest message or plain object to encode
+ * @param {google.container.v1.IListOperationsResponse} message ListOperationsResponse message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- SetMasterAuthRequest.encode = function encode(message, writer) {
+ ListOperationsResponse.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
- if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
- if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
- if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
- if (message.action != null && Object.hasOwnProperty.call(message, "action"))
- writer.uint32(/* id 4, wireType 0 =*/32).int32(message.action);
- if (message.update != null && Object.hasOwnProperty.call(message, "update"))
- $root.google.container.v1.MasterAuth.encode(message.update, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.name);
+ if (message.operations != null && message.operations.length)
+ for (var i = 0; i < message.operations.length; ++i)
+ $root.google.container.v1.Operation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.missingZones != null && message.missingZones.length)
+ for (var i = 0; i < message.missingZones.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.missingZones[i]);
return writer;
};
/**
- * Encodes the specified SetMasterAuthRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages.
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.SetMasterAuthRequest
+ * @memberof google.container.v1.ListOperationsResponse
* @static
- * @param {google.container.v1.ISetMasterAuthRequest} message SetMasterAuthRequest message or plain object to encode
+ * @param {google.container.v1.IListOperationsResponse} message ListOperationsResponse message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- SetMasterAuthRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ ListOperationsResponse.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a SetMasterAuthRequest message from the specified reader or buffer.
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.SetMasterAuthRequest
+ * @memberof google.container.v1.ListOperationsResponse
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest
+ * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- SetMasterAuthRequest.decode = function decode(reader, length) {
+ ListOperationsResponse.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.SetMasterAuthRequest();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListOperationsResponse();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- message.projectId = reader.string();
- break;
- case 2:
- message.zone = reader.string();
- break;
- case 3:
- message.clusterId = reader.string();
- break;
- case 4:
- message.action = reader.int32();
- break;
- case 5:
- message.update = $root.google.container.v1.MasterAuth.decode(reader, reader.uint32());
+ if (!(message.operations && message.operations.length))
+ message.operations = [];
+ message.operations.push($root.google.container.v1.Operation.decode(reader, reader.uint32()));
break;
- case 7:
- message.name = reader.string();
+ case 2:
+ if (!(message.missingZones && message.missingZones.length))
+ message.missingZones = [];
+ message.missingZones.push(reader.string());
break;
default:
reader.skipType(tag & 7);
@@ -11670,197 +15800,147 @@
};
/**
- * Decodes a SetMasterAuthRequest message from the specified reader or buffer, length delimited.
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.SetMasterAuthRequest
+ * @memberof google.container.v1.ListOperationsResponse
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest
+ * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- SetMasterAuthRequest.decodeDelimited = function decodeDelimited(reader) {
+ ListOperationsResponse.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a SetMasterAuthRequest message.
+ * Verifies a ListOperationsResponse message.
* @function verify
- * @memberof google.container.v1.SetMasterAuthRequest
+ * @memberof google.container.v1.ListOperationsResponse
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- SetMasterAuthRequest.verify = function verify(message) {
+ ListOperationsResponse.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
- if (message.projectId != null && message.hasOwnProperty("projectId"))
- if (!$util.isString(message.projectId))
- return "projectId: string expected";
- if (message.zone != null && message.hasOwnProperty("zone"))
- if (!$util.isString(message.zone))
- return "zone: string expected";
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- if (!$util.isString(message.clusterId))
- return "clusterId: string expected";
- if (message.action != null && message.hasOwnProperty("action"))
- switch (message.action) {
- default:
- return "action: enum value expected";
- case 0:
- case 1:
- case 2:
- case 3:
- break;
+ if (message.operations != null && message.hasOwnProperty("operations")) {
+ if (!Array.isArray(message.operations))
+ return "operations: array expected";
+ for (var i = 0; i < message.operations.length; ++i) {
+ var error = $root.google.container.v1.Operation.verify(message.operations[i]);
+ if (error)
+ return "operations." + error;
}
- if (message.update != null && message.hasOwnProperty("update")) {
- var error = $root.google.container.v1.MasterAuth.verify(message.update);
- if (error)
- return "update." + error;
}
- if (message.name != null && message.hasOwnProperty("name"))
- if (!$util.isString(message.name))
- return "name: string expected";
+ if (message.missingZones != null && message.hasOwnProperty("missingZones")) {
+ if (!Array.isArray(message.missingZones))
+ return "missingZones: array expected";
+ for (var i = 0; i < message.missingZones.length; ++i)
+ if (!$util.isString(message.missingZones[i]))
+ return "missingZones: string[] expected";
+ }
return null;
};
/**
- * Creates a SetMasterAuthRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.SetMasterAuthRequest
+ * @memberof google.container.v1.ListOperationsResponse
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest
+ * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse
*/
- SetMasterAuthRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.SetMasterAuthRequest)
+ ListOperationsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.ListOperationsResponse)
return object;
- var message = new $root.google.container.v1.SetMasterAuthRequest();
- if (object.projectId != null)
- message.projectId = String(object.projectId);
- if (object.zone != null)
- message.zone = String(object.zone);
- if (object.clusterId != null)
- message.clusterId = String(object.clusterId);
- switch (object.action) {
- case "UNKNOWN":
- case 0:
- message.action = 0;
- break;
- case "SET_PASSWORD":
- case 1:
- message.action = 1;
- break;
- case "GENERATE_PASSWORD":
- case 2:
- message.action = 2;
- break;
- case "SET_USERNAME":
- case 3:
- message.action = 3;
- break;
+ var message = new $root.google.container.v1.ListOperationsResponse();
+ if (object.operations) {
+ if (!Array.isArray(object.operations))
+ throw TypeError(".google.container.v1.ListOperationsResponse.operations: array expected");
+ message.operations = [];
+ for (var i = 0; i < object.operations.length; ++i) {
+ if (typeof object.operations[i] !== "object")
+ throw TypeError(".google.container.v1.ListOperationsResponse.operations: object expected");
+ message.operations[i] = $root.google.container.v1.Operation.fromObject(object.operations[i]);
+ }
}
- if (object.update != null) {
- if (typeof object.update !== "object")
- throw TypeError(".google.container.v1.SetMasterAuthRequest.update: object expected");
- message.update = $root.google.container.v1.MasterAuth.fromObject(object.update);
+ if (object.missingZones) {
+ if (!Array.isArray(object.missingZones))
+ throw TypeError(".google.container.v1.ListOperationsResponse.missingZones: array expected");
+ message.missingZones = [];
+ for (var i = 0; i < object.missingZones.length; ++i)
+ message.missingZones[i] = String(object.missingZones[i]);
}
- if (object.name != null)
- message.name = String(object.name);
return message;
};
/**
- * Creates a plain object from a SetMasterAuthRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.SetMasterAuthRequest
+ * @memberof google.container.v1.ListOperationsResponse
* @static
- * @param {google.container.v1.SetMasterAuthRequest} message SetMasterAuthRequest
+ * @param {google.container.v1.ListOperationsResponse} message ListOperationsResponse
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- SetMasterAuthRequest.toObject = function toObject(message, options) {
+ ListOperationsResponse.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
- if (options.defaults) {
- object.projectId = "";
- object.zone = "";
- object.clusterId = "";
- object.action = options.enums === String ? "UNKNOWN" : 0;
- object.update = null;
- object.name = "";
+ if (options.arrays || options.defaults) {
+ object.operations = [];
+ object.missingZones = [];
+ }
+ if (message.operations && message.operations.length) {
+ object.operations = [];
+ for (var j = 0; j < message.operations.length; ++j)
+ object.operations[j] = $root.google.container.v1.Operation.toObject(message.operations[j], options);
+ }
+ if (message.missingZones && message.missingZones.length) {
+ object.missingZones = [];
+ for (var j = 0; j < message.missingZones.length; ++j)
+ object.missingZones[j] = message.missingZones[j];
}
- if (message.projectId != null && message.hasOwnProperty("projectId"))
- object.projectId = message.projectId;
- if (message.zone != null && message.hasOwnProperty("zone"))
- object.zone = message.zone;
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- object.clusterId = message.clusterId;
- if (message.action != null && message.hasOwnProperty("action"))
- object.action = options.enums === String ? $root.google.container.v1.SetMasterAuthRequest.Action[message.action] : message.action;
- if (message.update != null && message.hasOwnProperty("update"))
- object.update = $root.google.container.v1.MasterAuth.toObject(message.update, options);
- if (message.name != null && message.hasOwnProperty("name"))
- object.name = message.name;
return object;
};
/**
- * Converts this SetMasterAuthRequest to JSON.
+ * Converts this ListOperationsResponse to JSON.
* @function toJSON
- * @memberof google.container.v1.SetMasterAuthRequest
+ * @memberof google.container.v1.ListOperationsResponse
* @instance
* @returns {Object.} JSON object
*/
- SetMasterAuthRequest.prototype.toJSON = function toJSON() {
+ ListOperationsResponse.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- /**
- * Action enum.
- * @name google.container.v1.SetMasterAuthRequest.Action
- * @enum {number}
- * @property {number} UNKNOWN=0 UNKNOWN value
- * @property {number} SET_PASSWORD=1 SET_PASSWORD value
- * @property {number} GENERATE_PASSWORD=2 GENERATE_PASSWORD value
- * @property {number} SET_USERNAME=3 SET_USERNAME value
- */
- SetMasterAuthRequest.Action = (function() {
- var valuesById = {}, values = Object.create(valuesById);
- values[valuesById[0] = "UNKNOWN"] = 0;
- values[valuesById[1] = "SET_PASSWORD"] = 1;
- values[valuesById[2] = "GENERATE_PASSWORD"] = 2;
- values[valuesById[3] = "SET_USERNAME"] = 3;
- return values;
- })();
-
- return SetMasterAuthRequest;
+ return ListOperationsResponse;
})();
- v1.DeleteClusterRequest = (function() {
+ v1.GetServerConfigRequest = (function() {
/**
- * Properties of a DeleteClusterRequest.
+ * Properties of a GetServerConfigRequest.
* @memberof google.container.v1
- * @interface IDeleteClusterRequest
- * @property {string|null} [projectId] DeleteClusterRequest projectId
- * @property {string|null} [zone] DeleteClusterRequest zone
- * @property {string|null} [clusterId] DeleteClusterRequest clusterId
- * @property {string|null} [name] DeleteClusterRequest name
+ * @interface IGetServerConfigRequest
+ * @property {string|null} [projectId] GetServerConfigRequest projectId
+ * @property {string|null} [zone] GetServerConfigRequest zone
+ * @property {string|null} [name] GetServerConfigRequest name
*/
/**
- * Constructs a new DeleteClusterRequest.
+ * Constructs a new GetServerConfigRequest.
* @memberof google.container.v1
- * @classdesc Represents a DeleteClusterRequest.
- * @implements IDeleteClusterRequest
+ * @classdesc Represents a GetServerConfigRequest.
+ * @implements IGetServerConfigRequest
* @constructor
- * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set
+ * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set
*/
- function DeleteClusterRequest(properties) {
+ function GetServerConfigRequest(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -11868,100 +15948,90 @@
}
/**
- * DeleteClusterRequest projectId.
+ * GetServerConfigRequest projectId.
* @member {string} projectId
- * @memberof google.container.v1.DeleteClusterRequest
+ * @memberof google.container.v1.GetServerConfigRequest
* @instance
*/
- DeleteClusterRequest.prototype.projectId = "";
+ GetServerConfigRequest.prototype.projectId = "";
/**
- * DeleteClusterRequest zone.
+ * GetServerConfigRequest zone.
* @member {string} zone
- * @memberof google.container.v1.DeleteClusterRequest
- * @instance
- */
- DeleteClusterRequest.prototype.zone = "";
-
- /**
- * DeleteClusterRequest clusterId.
- * @member {string} clusterId
- * @memberof google.container.v1.DeleteClusterRequest
+ * @memberof google.container.v1.GetServerConfigRequest
* @instance
*/
- DeleteClusterRequest.prototype.clusterId = "";
+ GetServerConfigRequest.prototype.zone = "";
/**
- * DeleteClusterRequest name.
+ * GetServerConfigRequest name.
* @member {string} name
- * @memberof google.container.v1.DeleteClusterRequest
+ * @memberof google.container.v1.GetServerConfigRequest
* @instance
*/
- DeleteClusterRequest.prototype.name = "";
+ GetServerConfigRequest.prototype.name = "";
/**
- * Creates a new DeleteClusterRequest instance using the specified properties.
+ * Creates a new GetServerConfigRequest instance using the specified properties.
* @function create
- * @memberof google.container.v1.DeleteClusterRequest
+ * @memberof google.container.v1.GetServerConfigRequest
* @static
- * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set
- * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest instance
+ * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set
+ * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest instance
*/
- DeleteClusterRequest.create = function create(properties) {
- return new DeleteClusterRequest(properties);
+ GetServerConfigRequest.create = function create(properties) {
+ return new GetServerConfigRequest(properties);
};
/**
- * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages.
+ * Encodes the specified GetServerConfigRequest message. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages.
* @function encode
- * @memberof google.container.v1.DeleteClusterRequest
+ * @memberof google.container.v1.GetServerConfigRequest
* @static
- * @param {google.container.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode
+ * @param {google.container.v1.IGetServerConfigRequest} message GetServerConfigRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- DeleteClusterRequest.encode = function encode(message, writer) {
+ GetServerConfigRequest.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId"))
writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId);
if (message.zone != null && Object.hasOwnProperty.call(message, "zone"))
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
- if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId"))
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId);
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone);
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
writer.uint32(/* id 4, wireType 2 =*/34).string(message.name);
return writer;
};
/**
- * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages.
+ * Encodes the specified GetServerConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages.
* @function encodeDelimited
- * @memberof google.container.v1.DeleteClusterRequest
+ * @memberof google.container.v1.GetServerConfigRequest
* @static
- * @param {google.container.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode
+ * @param {google.container.v1.IGetServerConfigRequest} message GetServerConfigRequest message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
- DeleteClusterRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ GetServerConfigRequest.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
- * Decodes a DeleteClusterRequest message from the specified reader or buffer.
+ * Decodes a GetServerConfigRequest message from the specified reader or buffer.
* @function decode
- * @memberof google.container.v1.DeleteClusterRequest
+ * @memberof google.container.v1.GetServerConfigRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
- * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest
+ * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- DeleteClusterRequest.decode = function decode(reader, length) {
+ GetServerConfigRequest.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.DeleteClusterRequest();
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetServerConfigRequest();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
@@ -11971,9 +16041,6 @@
case 2:
message.zone = reader.string();
break;
- case 3:
- message.clusterId = reader.string();
- break;
case 4:
message.name = reader.string();
break;
@@ -11986,30 +16053,30 @@
};
/**
- * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited.
+ * Decodes a GetServerConfigRequest message from the specified reader or buffer, length delimited.
* @function decodeDelimited
- * @memberof google.container.v1.DeleteClusterRequest
+ * @memberof google.container.v1.GetServerConfigRequest
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
- * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest
+ * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
- DeleteClusterRequest.decodeDelimited = function decodeDelimited(reader) {
+ GetServerConfigRequest.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
- * Verifies a DeleteClusterRequest message.
+ * Verifies a GetServerConfigRequest message.
* @function verify
- * @memberof google.container.v1.DeleteClusterRequest
+ * @memberof google.container.v1.GetServerConfigRequest
* @static
* @param {Object.} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
- DeleteClusterRequest.verify = function verify(message) {
+ GetServerConfigRequest.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.projectId != null && message.hasOwnProperty("projectId"))
@@ -12018,9 +16085,6 @@
if (message.zone != null && message.hasOwnProperty("zone"))
if (!$util.isString(message.zone))
return "zone: string expected";
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- if (!$util.isString(message.clusterId))
- return "clusterId: string expected";
if (message.name != null && message.hasOwnProperty("name"))
if (!$util.isString(message.name))
return "name: string expected";
@@ -12028,92 +16092,94 @@
};
/**
- * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types.
+ * Creates a GetServerConfigRequest message from a plain object. Also converts values to their respective internal types.
* @function fromObject
- * @memberof google.container.v1.DeleteClusterRequest
+ * @memberof google.container.v1.GetServerConfigRequest
* @static
* @param {Object.} object Plain object
- * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest
+ * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest
*/
- DeleteClusterRequest.fromObject = function fromObject(object) {
- if (object instanceof $root.google.container.v1.DeleteClusterRequest)
+ GetServerConfigRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.container.v1.GetServerConfigRequest)
return object;
- var message = new $root.google.container.v1.DeleteClusterRequest();
+ var message = new $root.google.container.v1.GetServerConfigRequest();
if (object.projectId != null)
message.projectId = String(object.projectId);
if (object.zone != null)
message.zone = String(object.zone);
- if (object.clusterId != null)
- message.clusterId = String(object.clusterId);
if (object.name != null)
message.name = String(object.name);
return message;
};
/**
- * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified.
+ * Creates a plain object from a GetServerConfigRequest message. Also converts values to other types if specified.
* @function toObject
- * @memberof google.container.v1.DeleteClusterRequest
+ * @memberof google.container.v1.GetServerConfigRequest
* @static
- * @param {google.container.v1.DeleteClusterRequest} message DeleteClusterRequest
+ * @param {google.container.v1.GetServerConfigRequest} message GetServerConfigRequest
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.} Plain object
*/
- DeleteClusterRequest.toObject = function toObject(message, options) {
+ GetServerConfigRequest.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
object.projectId = "";
object.zone = "";
- object.clusterId = "";
object.name = "";
}
if (message.projectId != null && message.hasOwnProperty("projectId"))
object.projectId = message.projectId;
if (message.zone != null && message.hasOwnProperty("zone"))
object.zone = message.zone;
- if (message.clusterId != null && message.hasOwnProperty("clusterId"))
- object.clusterId = message.clusterId;
if (message.name != null && message.hasOwnProperty("name"))
object.name = message.name;
return object;
};
/**
- * Converts this DeleteClusterRequest to JSON.
+ * Converts this GetServerConfigRequest to JSON.
* @function toJSON
- * @memberof google.container.v1.DeleteClusterRequest
+ * @memberof google.container.v1.GetServerConfigRequest
* @instance
* @returns {Object.} JSON object
*/
- DeleteClusterRequest.prototype.toJSON = function toJSON() {
+ GetServerConfigRequest.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
- return DeleteClusterRequest;
+ return GetServerConfigRequest;
})();
- v1.ListClustersRequest = (function() {
+ v1.ServerConfig = (function() {
/**
- * Properties of a ListClustersRequest.
+ * Properties of a ServerConfig.
* @memberof google.container.v1
- * @interface IListClustersRequest
- * @property {string|null} [projectId] ListClustersRequest projectId
- * @property {string|null} [zone] ListClustersRequest zone
- * @property {string|null} [parent] ListClustersRequest parent
+ * @interface IServerConfig
+ * @property {string|null} [defaultClusterVersion] ServerConfig defaultClusterVersion
+ * @property {Array.|null} [validNodeVersions] ServerConfig validNodeVersions
+ * @property {string|null} [defaultImageType] ServerConfig defaultImageType
+ * @property {Array.|null} [validImageTypes] ServerConfig validImageTypes
+ * @property {Array.|null} [validMasterVersions] ServerConfig validMasterVersions
+ * @property {Array.